Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007858/0.000786, allocations: 95.47 kB / 16.04 MB, free: 5.598 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07767/0.07767, allocations: 12.63 MB / 29.41 MB, free: 6.07 MB / 24.77 MB Notification: Performance of FrontEnd - loaded program: time 0.0002033/0.0002033, allocations: 4 kB / 40.28 MB, free: 0.6016 MB / 24.77 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.005848/0.006065, allocations: 2.827 MB / 43.11 MB, free: 6.051 MB / 33.03 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample): time 1.569/1.575, allocations: 277.8 MB / 321 MB, free: 10.42 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001926/1.577, allocations: 1.422 MB / 322.4 MB, free: 8.902 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/1.577, allocations: 0 / 322.4 MB, free: 8.902 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002962/1.578, allocations: 67.2 kB / 322.4 MB, free: 8.84 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002116/1.578, allocations: 75.73 kB / 322.5 MB, free: 8.766 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006914/1.579, allocations: 227.5 kB / 322.7 MB, free: 8.543 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002166/1.579, allocations: 152.5 kB / 322.9 MB, free: 8.395 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001555/1.579, allocations: 79.39 kB / 323 MB, free: 8.32 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.304e-05/1.579, allocations: 59.66 kB / 323 MB, free: 8.262 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001119/1.579, allocations: 75.61 kB / 323.1 MB, free: 8.188 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.929e-05/1.579, allocations: 4 kB / 323.1 MB, free: 8.184 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001256/1.579, allocations: 51.97 kB / 323.1 MB, free: 8.133 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.48e-05/1.58, allocations: 43.84 kB / 323.2 MB, free: 8.09 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001093/1.58, allocations: 100.6 kB / 323.3 MB, free: 7.988 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002686/1.58, allocations: 215.2 kB / 323.5 MB, free: 7.777 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/1.58, allocations: 0 / 323.5 MB, free: 7.777 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.423e-06/1.58, allocations: 4 kB / 323.5 MB, free: 7.773 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.709e-06/1.58, allocations: 0 / 323.5 MB, free: 7.773 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006452/1.581, allocations: 0.4885 MB / 324 MB, free: 7.23 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/1.581, allocations: 8.031 kB / 324 MB, free: 7.223 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.987e-05/1.581, allocations: 25.5 kB / 324 MB, free: 7.199 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003143/1.581, allocations: 287.5 kB / 324.3 MB, free: 6.883 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.001e-05/1.581, allocations: 7 kB / 324.3 MB, free: 6.879 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.263e-05/1.581, allocations: 12.12 kB / 324.3 MB, free: 6.867 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003332/1.581, allocations: 152.9 kB / 324.5 MB, free: 6.691 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/1.581, allocations: 0 / 324.5 MB, free: 6.691 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/1.581, allocations: 4.734 kB / 324.5 MB, free: 6.688 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/1.581, allocations: 3.938 kB / 324.5 MB, free: 6.684 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001098/1.582, allocations: 45.09 kB / 324.5 MB, free: 6.641 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004812/1.582, allocations: 380.1 kB / 324.9 MB, free: 6.215 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000237/1.582, allocations: 118.3 kB / 325 MB, free: 6.074 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/1.582, allocations: 52.66 kB / 325.1 MB, free: 6.016 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.97e-05/1.582, allocations: 4 kB / 325.1 MB, free: 6.012 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002011/1.583, allocations: 77.12 kB / 325.1 MB, free: 5.926 MB / 250.7 MB Notification: Performance of pre-optimization done (n=9): time 1.353e-06/1.583, allocations: 0 / 325.1 MB, free: 5.926 MB / 250.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003706/1.583, allocations: 159.3 kB / 325.3 MB, free: 5.766 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.471e-05/1.583, allocations: 154.9 kB / 325.5 MB, free: 5.578 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003173/1.584, allocations: 326.7 kB / 325.8 MB, free: 5.25 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.846e-05/1.584, allocations: 30.33 kB / 325.8 MB, free: 5.215 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.121e-05/1.584, allocations: 125.9 kB / 325.9 MB, free: 5.09 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.517e-05/1.584, allocations: 19.73 kB / 325.9 MB, free: 5.07 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.773e-06/1.584, allocations: 4 kB / 325.9 MB, free: 5.066 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000123/1.584, allocations: 334.8 kB / 326.3 MB, free: 4.73 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.358e-05/1.584, allocations: 25.48 kB / 326.3 MB, free: 4.707 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/1.584, allocations: 92.81 kB / 326.4 MB, free: 4.594 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001537/1.584, allocations: 85.97 kB / 326.5 MB, free: 4.496 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/1.584, allocations: 1.812 kB / 326.5 MB, free: 4.496 MB / 250.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002134/1.584, allocations: 125.3 kB / 326.6 MB, free: 4.367 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/1.584, allocations: 4.875 kB / 326.6 MB, free: 4.363 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/1.584, allocations: 3.984 kB / 326.6 MB, free: 4.359 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/1.584, allocations: 5.219 kB / 326.6 MB, free: 4.355 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/1.585, allocations: 15.94 kB / 326.6 MB, free: 4.34 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.894e-06/1.585, allocations: 4 kB / 326.6 MB, free: 4.336 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.235e-05/1.585, allocations: 17.3 kB / 326.6 MB, free: 4.32 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.239e-05/1.585, allocations: 4 kB / 326.7 MB, free: 4.316 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample.y,subSample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001465/1.585, allocations: 154.4 kB / 326.8 MB, free: 4.156 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001034/1.585, allocations: 69.72 kB / 326.9 MB, free: 4.082 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.634e-05/1.585, allocations: 29.77 kB / 326.9 MB, free: 4.051 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/1.585, allocations: 4 kB / 326.9 MB, free: 4.047 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/1.585, allocations: 0 / 326.9 MB, free: 4.047 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/1.585, allocations: 3.938 kB / 326.9 MB, free: 4.043 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002034/1.585, allocations: 237.6 kB / 327.1 MB, free: 3.762 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/1.585, allocations: 0 / 327.1 MB, free: 3.762 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.351e-05/1.585, allocations: 15.98 kB / 327.2 MB, free: 3.746 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/1.585, allocations: 0 / 327.2 MB, free: 3.746 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/1.585, allocations: 8 kB / 327.2 MB, free: 3.738 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/1.585, allocations: 3.938 kB / 327.2 MB, free: 3.734 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/1.585, allocations: 0 / 327.2 MB, free: 3.734 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002438/1.586, allocations: 174.3 kB / 327.3 MB, free: 3.539 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.93e-05/1.586, allocations: 120.7 kB / 327.5 MB, free: 3.402 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.795e-05/1.586, allocations: 0 / 327.5 MB, free: 3.402 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.24e-05/1.586, allocations: 4 kB / 327.5 MB, free: 3.398 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.001e-05/1.586, allocations: 15.98 kB / 327.5 MB, free: 3.383 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-05/1.586, allocations: 11.98 kB / 327.5 MB, free: 3.371 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002089/1.586, allocations: 237.9 kB / 327.7 MB, free: 3.137 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.586, allocations: 4 kB / 327.7 MB, free: 3.133 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002441/1.586, allocations: 32 kB / 327.8 MB, free: 3.102 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample.y,sample.y,subSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008997/1.587, allocations: 478.8 kB / 328.2 MB, free: 2.762 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002134/1.588, allocations: 76.09 kB / 328.3 MB, free: 2.688 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/1.588, allocations: 3.938 kB / 328.3 MB, free: 2.684 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.836e-05/1.588, allocations: 27.98 kB / 328.3 MB, free: 2.656 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003856/1.588, allocations: 58.94 kB / 328.4 MB, free: 2.602 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000609/1.589, allocations: 408.5 kB / 328.8 MB, free: 2.164 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003337/1.589, allocations: 0.7439 MB / 329.5 MB, free: 1.395 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 9.009e-05/1.589, allocations: 25.8 kB / 329.6 MB, free: 1.371 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.346e-05/1.589, allocations: 23.42 kB / 329.6 MB, free: 1.348 MB / 250.7 MB Notification: Performance of SimCode: time 2.5e-07/1.589, allocations: 0 / 329.6 MB, free: 1.348 MB / 250.7 MB Notification: Performance of Templates: time 0.005659/1.595, allocations: 2.667 MB / 332.2 MB, free: 14.7 MB / 266.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches