Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.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.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000676/0.0006761, allocations: 98.73 kB / 16.04 MB, free: 5.617 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.0778/0.0778, allocations: 12.63 MB / 29.41 MB, free: 5.887 MB / 24.77 MB Notification: Performance of FrontEnd - loaded program: time 0.0001955/0.0001955, allocations: 4 kB / 40.28 MB, free: 0.5117 MB / 24.77 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.00617/0.006379, allocations: 2.823 MB / 43.1 MB, free: 5.965 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.BooleanSignals.ShiftSample): time 1.662/1.669, allocations: 277.9 MB / 321 MB, free: 10.39 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001883/1.671, allocations: 1.21 MB / 322.2 MB, free: 9.121 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001656/1.671, allocations: 3.938 kB / 322.2 MB, free: 9.117 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006787/1.672, allocations: 139.7 kB / 322.3 MB, free: 8.98 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003099/1.672, allocations: 100.4 kB / 322.4 MB, free: 8.883 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005528/1.672, allocations: 186.7 kB / 322.6 MB, free: 8.703 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002808/1.673, allocations: 175.5 kB / 322.8 MB, free: 8.531 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001631/1.673, allocations: 68.38 kB / 322.8 MB, free: 8.465 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001131/1.673, allocations: 72.25 kB / 322.9 MB, free: 8.395 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000128/1.673, allocations: 67.06 kB / 323 MB, free: 8.332 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.337e-05/1.673, allocations: 4 kB / 323 MB, free: 8.328 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001468/1.673, allocations: 43.92 kB / 323 MB, free: 8.285 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.116e-05/1.673, allocations: 35.84 kB / 323 MB, free: 8.25 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.898e-05/1.674, allocations: 89.23 kB / 323.1 MB, free: 8.156 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00029/1.674, allocations: 187.3 kB / 323.3 MB, free: 7.973 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.154e-06/1.674, allocations: 0 / 323.3 MB, free: 7.973 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.493e-06/1.674, allocations: 0 / 323.3 MB, free: 7.973 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.113e-05/1.674, allocations: 0 / 323.3 MB, free: 7.973 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.0007838/1.675, allocations: 490.4 kB / 323.8 MB, free: 7.441 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/1.675, allocations: 8.031 kB / 323.8 MB, free: 7.434 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.342e-05/1.675, allocations: 24.59 kB / 323.8 MB, free: 7.41 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003523/1.675, allocations: 260.6 kB / 324.1 MB, free: 7.113 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.342e-05/1.675, allocations: 4.375 kB / 324.1 MB, free: 7.109 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.827e-05/1.675, allocations: 12.12 kB / 324.1 MB, free: 7.098 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000328/1.676, allocations: 141.5 kB / 324.2 MB, free: 6.938 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/1.676, allocations: 11.88 kB / 324.3 MB, free: 6.926 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.508e-05/1.676, allocations: 4 kB / 324.3 MB, free: 6.922 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/1.676, allocations: 0.75 kB / 324.3 MB, free: 6.922 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001048/1.676, allocations: 31.97 kB / 324.3 MB, free: 6.891 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005036/1.676, allocations: 365 kB / 324.6 MB, free: 6.48 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002153/1.676, allocations: 114.4 kB / 324.8 MB, free: 6.344 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.102e-05/1.677, allocations: 47.59 kB / 324.8 MB, free: 6.289 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.562e-05/1.677, allocations: 0.75 kB / 324.8 MB, free: 6.289 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001624/1.677, allocations: 77.23 kB / 324.9 MB, free: 6.203 MB / 250.7 MB Notification: Performance of pre-optimization done (n=9): time 1.603e-06/1.677, allocations: 0 / 324.9 MB, free: 6.203 MB / 250.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003291/1.677, allocations: 134.5 kB / 325 MB, free: 6.066 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.35e-05/1.677, allocations: 141.7 kB / 325.1 MB, free: 5.898 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002618/1.677, allocations: 253.5 kB / 325.4 MB, free: 5.641 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.123e-05/1.677, allocations: 34.36 kB / 325.4 MB, free: 5.602 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.058e-05/1.678, allocations: 127 kB / 325.6 MB, free: 5.477 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.409e-05/1.678, allocations: 7.984 kB / 325.6 MB, free: 5.469 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.621e-06/1.678, allocations: 0 / 325.6 MB, free: 5.469 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001365/1.678, allocations: 334.8 kB / 325.9 MB, free: 5.133 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.232e-05/1.678, allocations: 27.86 kB / 325.9 MB, free: 5.105 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.33e-05/1.678, allocations: 74.77 kB / 326 MB, free: 5.012 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001416/1.678, allocations: 79.56 kB / 326.1 MB, free: 4.922 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/1.678, allocations: 0 / 326.1 MB, free: 4.922 MB / 250.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002097/1.678, allocations: 118.6 kB / 326.2 MB, free: 4.801 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/1.678, allocations: 4 kB / 326.2 MB, free: 4.797 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/1.678, allocations: 5.562 kB / 326.2 MB, free: 4.793 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/1.678, allocations: 0 / 326.2 MB, free: 4.793 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.49e-05/1.679, allocations: 15.98 kB / 326.2 MB, free: 4.777 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/1.679, allocations: 0 / 326.2 MB, free: 4.777 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.133e-05/1.679, allocations: 18.38 kB / 326.2 MB, free: 4.762 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.766e-06/1.679, allocations: 0 / 326.2 MB, free: 4.762 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,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.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.00012/1.679, allocations: 149.7 kB / 326.4 MB, free: 4.605 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.206e-05/1.679, allocations: 58.38 kB / 326.4 MB, free: 4.543 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.249e-05/1.679, allocations: 25.7 kB / 326.5 MB, free: 4.516 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/1.679, allocations: 1.094 kB / 326.5 MB, free: 4.516 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/1.679, allocations: 4 kB / 326.5 MB, free: 4.512 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/1.679, allocations: 3.938 kB / 326.5 MB, free: 4.508 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001725/1.679, allocations: 222.5 kB / 326.7 MB, free: 4.242 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.97e-06/1.679, allocations: 4 kB / 326.7 MB, free: 4.238 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.698e-05/1.679, allocations: 8.406 kB / 326.7 MB, free: 4.23 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/1.679, allocations: 8 kB / 326.7 MB, free: 4.223 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-06/1.679, allocations: 3.984 kB / 326.7 MB, free: 4.219 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/1.679, allocations: 4 kB / 326.7 MB, free: 4.215 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/1.679, allocations: 3.938 kB / 326.7 MB, free: 4.211 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002184/1.679, allocations: 150.5 kB / 326.9 MB, free: 4.039 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.537e-05/1.68, allocations: 112.9 kB / 327 MB, free: 3.91 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.737e-05/1.68, allocations: 4 kB / 327 MB, free: 3.906 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.442e-05/1.68, allocations: 8 kB / 327 MB, free: 3.898 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.675e-05/1.68, allocations: 7.984 kB / 327 MB, free: 3.891 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.517e-05/1.68, allocations: 7.938 kB / 327 MB, free: 3.883 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001794/1.68, allocations: 192.5 kB / 327.2 MB, free: 3.699 MB / 250.7 MB Notification: Performance of sort global known variables: time 2.3e-07/1.68, allocations: 3.938 kB / 327.2 MB, free: 3.695 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000236/1.68, allocations: 31.94 kB / 327.2 MB, free: 3.664 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,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample.y,shiftSample1.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.0009262/1.681, allocations: 483.8 kB / 327.7 MB, free: 3.32 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001991/1.681, allocations: 59.92 kB / 327.7 MB, free: 3.262 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/1.681, allocations: 0 / 327.7 MB, free: 3.262 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8.293e-05/1.681, allocations: 27.97 kB / 327.8 MB, free: 3.234 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003992/1.682, allocations: 63.39 kB / 327.8 MB, free: 3.172 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005975/1.682, allocations: 356.2 kB / 328.2 MB, free: 2.789 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002953/1.683, allocations: 0.7283 MB / 328.9 MB, free: 2.035 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.254e-05/1.683, allocations: 17.55 kB / 328.9 MB, free: 2.02 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.008e-05/1.683, allocations: 19.44 kB / 328.9 MB, free: 2.004 MB / 250.7 MB Notification: Performance of SimCode: time 2.31e-07/1.683, allocations: 0 / 328.9 MB, free: 2.004 MB / 250.7 MB Notification: Performance of Templates: time 0.0058/1.689, allocations: 2.323 MB / 331.3 MB, free: 15.7 MB / 266.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches