Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.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.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007906/0.0007906, allocations: 94.47 kB / 16.04 MB, free: 5.742 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.07504/0.07504, allocations: 12.63 MB / 29.41 MB, free: 6.09 MB / 24.77 MB Notification: Performance of FrontEnd - loaded program: time 0.0001919/0.0001919, allocations: 4 kB / 40.28 MB, free: 0.6172 MB / 24.77 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.006253/0.00646, allocations: 2.825 MB / 43.1 MB, free: 6.066 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.UpSample): time 1.686/1.693, allocations: 277.9 MB / 321 MB, free: 10.32 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002017/1.695, allocations: 1.484 MB / 322.5 MB, free: 8.746 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001193/1.695, allocations: 9.469 kB / 322.5 MB, free: 8.738 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003028/1.695, allocations: 63.73 kB / 322.6 MB, free: 8.676 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000249/1.695, allocations: 83.72 kB / 322.7 MB, free: 8.594 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000829/1.696, allocations: 269.8 kB / 322.9 MB, free: 8.332 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002375/1.696, allocations: 196.1 kB / 323.1 MB, free: 8.141 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001802/1.697, allocations: 107.5 kB / 323.2 MB, free: 8.039 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001098/1.697, allocations: 80.75 kB / 323.3 MB, free: 7.961 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000136/1.697, allocations: 87.61 kB / 323.4 MB, free: 7.875 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.291e-05/1.697, allocations: 4 kB / 323.4 MB, free: 7.871 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001349/1.697, allocations: 58.59 kB / 323.4 MB, free: 7.816 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.119e-05/1.697, allocations: 59.75 kB / 323.5 MB, free: 7.758 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001237/1.697, allocations: 109.1 kB / 323.6 MB, free: 7.645 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003146/1.698, allocations: 271 kB / 323.9 MB, free: 7.379 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/1.698, allocations: 0 / 323.9 MB, free: 7.379 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.252e-06/1.698, allocations: 0 / 323.9 MB, free: 7.379 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.807e-06/1.698, allocations: 0 / 323.9 MB, free: 7.379 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007929/1.698, allocations: 0.54 MB / 324.4 MB, free: 6.785 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/1.698, allocations: 14.97 kB / 324.4 MB, free: 6.773 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.916e-05/1.699, allocations: 24.66 kB / 324.5 MB, free: 6.75 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004217/1.699, allocations: 307.4 kB / 324.8 MB, free: 6.414 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.797e-05/1.699, allocations: 8.375 kB / 324.8 MB, free: 6.406 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.498e-05/1.699, allocations: 16.12 kB / 324.8 MB, free: 6.391 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006962/1.7, allocations: 322.8 kB / 325.1 MB, free: 6.055 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/1.7, allocations: 0 / 325.1 MB, free: 6.055 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.308e-05/1.7, allocations: 10.09 kB / 325.1 MB, free: 6.047 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/1.7, allocations: 0 / 325.1 MB, free: 6.047 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002068/1.7, allocations: 75.88 kB / 325.2 MB, free: 5.973 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006597/1.701, allocations: 412.6 kB / 325.6 MB, free: 5.516 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000434/1.701, allocations: 192 kB / 325.8 MB, free: 5.305 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002176/1.701, allocations: 98.53 kB / 325.9 MB, free: 5.199 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.511e-05/1.701, allocations: 0 / 325.9 MB, free: 5.199 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002039/1.702, allocations: 89.5 kB / 326 MB, free: 5.102 MB / 250.7 MB Notification: Performance of pre-optimization done (n=22): time 1.863e-06/1.702, allocations: 0 / 326 MB, free: 5.102 MB / 250.7 MB Notification: Performance of matching and sorting (n=22): time 0.0006235/1.702, allocations: 245.2 kB / 326.2 MB, free: 4.855 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/1.702, allocations: 171 kB / 326.4 MB, free: 4.652 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003579/1.703, allocations: 345.8 kB / 326.7 MB, free: 4.305 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.865e-05/1.703, allocations: 33.7 kB / 326.7 MB, free: 4.266 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.998e-05/1.703, allocations: 128.7 kB / 326.9 MB, free: 4.137 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.469e-05/1.703, allocations: 31.64 kB / 326.9 MB, free: 4.105 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.913e-06/1.703, allocations: 0 / 326.9 MB, free: 4.105 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001377/1.703, allocations: 342.8 kB / 327.2 MB, free: 3.762 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001016/1.703, allocations: 45.19 kB / 327.3 MB, free: 3.715 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001925/1.703, allocations: 190.2 kB / 327.4 MB, free: 3.473 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000273/1.704, allocations: 203.9 kB / 327.6 MB, free: 3.223 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/1.704, allocations: 4 kB / 327.7 MB, free: 3.219 MB / 250.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003826/1.704, allocations: 233 kB / 327.9 MB, free: 2.984 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/1.704, allocations: 8 kB / 327.9 MB, free: 2.977 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.888e-06/1.704, allocations: 7.984 kB / 327.9 MB, free: 2.969 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.102e-05/1.704, allocations: 4 kB / 327.9 MB, free: 2.965 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001594/1.704, allocations: 44.45 kB / 327.9 MB, free: 2.922 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.361e-05/1.704, allocations: 7.938 kB / 328 MB, free: 2.914 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001126/1.704, allocations: 23.89 kB / 328 MB, free: 2.891 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.012e-05/1.704, allocations: 19.97 kB / 328 MB, free: 2.871 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sum.y,sum.u[2],sum.u[1],upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001858/1.705, allocations: 172.3 kB / 328.2 MB, free: 2.695 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002151/1.705, allocations: 157.4 kB / 328.3 MB, free: 2.535 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.997e-05/1.705, allocations: 33.69 kB / 328.3 MB, free: 2.504 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/1.705, allocations: 7.984 kB / 328.4 MB, free: 2.496 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/1.705, allocations: 3.938 kB / 328.4 MB, free: 2.492 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/1.705, allocations: 8 kB / 328.4 MB, free: 2.484 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002506/1.705, allocations: 257.5 kB / 328.6 MB, free: 2.184 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/1.705, allocations: 0 / 328.6 MB, free: 2.184 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001382/1.705, allocations: 31.98 kB / 328.7 MB, free: 2.152 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/1.705, allocations: 0 / 328.7 MB, free: 2.152 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.728e-05/1.705, allocations: 4 kB / 328.7 MB, free: 2.148 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/1.705, allocations: 0 / 328.7 MB, free: 2.148 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.257e-06/1.705, allocations: 7.938 kB / 328.7 MB, free: 2.141 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003733/1.706, allocations: 248.7 kB / 328.9 MB, free: 1.875 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001098/1.706, allocations: 124.8 kB / 329 MB, free: 1.734 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.007e-05/1.706, allocations: 8 kB / 329 MB, free: 1.727 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.258e-05/1.706, allocations: 8 kB / 329 MB, free: 1.719 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.218e-05/1.706, allocations: 15.92 kB / 329.1 MB, free: 1.703 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.33e-05/1.706, allocations: 12.05 kB / 329.1 MB, free: 1.691 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002379/1.706, allocations: 245.9 kB / 329.3 MB, free: 1.453 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.706, allocations: 4 kB / 329.3 MB, free: 1.449 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002952/1.707, allocations: 59.83 kB / 329.4 MB, free: 1.391 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: 20 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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.0009262/1.708, allocations: 480 kB / 329.8 MB, free: 1.043 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003265/1.708, allocations: 152.7 kB / 330 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/1.708, allocations: 4 kB / 330 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8e-05/1.708, allocations: 31.92 kB / 330 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005028/1.709, allocations: 123.9 kB / 330.1 MB, free: 0.7383 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007283/1.709, allocations: 0.5052 MB / 330.7 MB, free: 200 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003209/1.71, allocations: 0.7755 MB / 331.4 MB, free: 15.39 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.836e-05/1.71, allocations: 38.53 kB / 331.5 MB, free: 15.36 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.886e-05/1.71, allocations: 27.42 kB / 331.5 MB, free: 15.33 MB / 266.7 MB Notification: Performance of SimCode: time 2.6e-07/1.71, allocations: 0 / 331.5 MB, free: 15.33 MB / 266.7 MB Notification: Performance of Templates: time 0.006329/1.716, allocations: 3.297 MB / 334.8 MB, free: 12.05 MB / 266.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches