Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.0009504/0.0009504, allocations: 95.73 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.1073/0.1073, allocations: 12.63 MB / 29.41 MB, free: 5.777 MB / 24.77 MB Notification: Performance of FrontEnd - loaded program: time 0.0001699/0.0001699, allocations: 4 kB / 40.28 MB, free: 0.5039 MB / 24.77 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.005189/0.005374, allocations: 2.827 MB / 43.1 MB, free: 5.953 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.ShiftSample): time 1.675/1.68, allocations: 277.8 MB / 320.9 MB, free: 10.39 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003113/1.683, allocations: 1.429 MB / 322.4 MB, free: 8.867 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001516/1.684, allocations: 3.938 kB / 322.4 MB, free: 8.863 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004377/1.684, allocations: 72.27 kB / 322.5 MB, free: 8.793 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003564/1.684, allocations: 78.14 kB / 322.5 MB, free: 8.719 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001166/1.686, allocations: 228 kB / 322.7 MB, free: 8.496 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003261/1.686, allocations: 152.1 kB / 322.9 MB, free: 8.348 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002251/1.686, allocations: 70.8 kB / 323 MB, free: 8.281 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001617/1.686, allocations: 71.62 kB / 323 MB, free: 8.211 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001512/1.687, allocations: 71.62 kB / 323.1 MB, free: 8.141 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.008e-05/1.687, allocations: 5.438 kB / 323.1 MB, free: 8.137 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001919/1.687, allocations: 51.97 kB / 323.2 MB, free: 8.086 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001162/1.687, allocations: 47.83 kB / 323.2 MB, free: 8.039 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001312/1.687, allocations: 89.19 kB / 323.3 MB, free: 7.945 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004212/1.688, allocations: 229.4 kB / 323.5 MB, free: 7.723 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/1.688, allocations: 0 / 323.5 MB, free: 7.723 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.723e-06/1.688, allocations: 0 / 323.5 MB, free: 7.723 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.718e-06/1.688, allocations: 0 / 323.5 MB, free: 7.723 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.0009087/1.689, allocations: 498 kB / 324 MB, free: 7.184 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/1.689, allocations: 8.031 kB / 324 MB, free: 7.176 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.607e-05/1.689, allocations: 24.66 kB / 324 MB, free: 7.152 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004641/1.689, allocations: 287.5 kB / 324.3 MB, free: 6.836 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.486e-05/1.689, allocations: 9.016 kB / 324.3 MB, free: 6.828 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.31e-05/1.689, allocations: 12.12 kB / 324.3 MB, free: 6.816 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004967/1.69, allocations: 162.4 kB / 324.5 MB, free: 6.633 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/1.69, allocations: 0.625 kB / 324.5 MB, free: 6.633 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.841e-05/1.69, allocations: 0 / 324.5 MB, free: 6.633 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/1.69, allocations: 4.781 kB / 324.5 MB, free: 6.629 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001936/1.69, allocations: 35.92 kB / 324.5 MB, free: 6.594 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007544/1.691, allocations: 381.4 kB / 324.9 MB, free: 6.168 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004042/1.691, allocations: 118.6 kB / 325 MB, free: 6.027 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001557/1.691, allocations: 51.38 kB / 325.1 MB, free: 5.969 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.795e-05/1.691, allocations: 0.7812 kB / 325.1 MB, free: 5.969 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003154/1.692, allocations: 77 kB / 325.2 MB, free: 5.883 MB / 250.7 MB Notification: Performance of pre-optimization done (n=9): time 2.746e-06/1.692, allocations: 0 / 325.2 MB, free: 5.883 MB / 250.7 MB Notification: Performance of matching and sorting (n=9): time 0.0006043/1.692, allocations: 156.2 kB / 325.3 MB, free: 5.727 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/1.693, allocations: 154.2 kB / 325.5 MB, free: 5.539 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00057/1.693, allocations: 326.7 kB / 325.8 MB, free: 5.211 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.535e-05/1.693, allocations: 33.69 kB / 325.8 MB, free: 5.172 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000129/1.693, allocations: 129.9 kB / 325.9 MB, free: 5.043 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.791e-05/1.693, allocations: 19.75 kB / 326 MB, free: 5.023 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.424e-05/1.693, allocations: 8 kB / 326 MB, free: 5.016 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001611/1.694, allocations: 335.5 kB / 326.3 MB, free: 4.68 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001139/1.694, allocations: 23.98 kB / 326.3 MB, free: 4.656 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002301/1.694, allocations: 90.78 kB / 326.4 MB, free: 4.547 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002718/1.694, allocations: 81 kB / 326.5 MB, free: 4.453 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/1.694, allocations: 6.406 kB / 326.5 MB, free: 4.449 MB / 250.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004119/1.695, allocations: 121.3 kB / 326.6 MB, free: 4.324 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/1.695, allocations: 4 kB / 326.6 MB, free: 4.32 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/1.695, allocations: 4 kB / 326.6 MB, free: 4.316 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/1.695, allocations: 5.969 kB / 326.6 MB, free: 4.312 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001908/1.695, allocations: 23.92 kB / 326.6 MB, free: 4.289 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/1.695, allocations: 0 / 326.6 MB, free: 4.289 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001498/1.695, allocations: 11.94 kB / 326.7 MB, free: 4.277 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.819e-05/1.695, allocations: 4 kB / 326.7 MB, free: 4.273 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,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.0002174/1.695, allocations: 157.1 kB / 326.8 MB, free: 4.113 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001319/1.696, allocations: 65.36 kB / 326.9 MB, free: 4.043 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.697e-05/1.696, allocations: 33.7 kB / 326.9 MB, free: 4.008 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/1.696, allocations: 4.031 kB / 326.9 MB, free: 4.004 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/1.696, allocations: 0 / 326.9 MB, free: 4.004 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.346e-05/1.696, allocations: 12.64 kB / 326.9 MB, free: 3.992 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003126/1.696, allocations: 229.6 kB / 327.1 MB, free: 3.719 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/1.696, allocations: 5.375 kB / 327.2 MB, free: 3.715 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.266e-05/1.696, allocations: 8 kB / 327.2 MB, free: 3.707 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/1.696, allocations: 0 / 327.2 MB, free: 3.707 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.638e-05/1.696, allocations: 11.98 kB / 327.2 MB, free: 3.695 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.68e-06/1.696, allocations: 4.375 kB / 327.2 MB, free: 3.691 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/1.696, allocations: 4 kB / 327.2 MB, free: 3.688 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004287/1.697, allocations: 166.4 kB / 327.3 MB, free: 3.5 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001932/1.697, allocations: 120.7 kB / 327.5 MB, free: 3.363 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.714e-05/1.697, allocations: 4 kB / 327.5 MB, free: 3.359 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001157/1.697, allocations: 0 / 327.5 MB, free: 3.359 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.263e-05/1.697, allocations: 15.98 kB / 327.5 MB, free: 3.344 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.518e-05/1.697, allocations: 7.938 kB / 327.5 MB, free: 3.336 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0004466/1.698, allocations: 241.9 kB / 327.7 MB, free: 3.098 MB / 250.7 MB Notification: Performance of sort global known variables: time 4.61e-07/1.698, allocations: 0 / 327.7 MB, free: 3.098 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004604/1.698, allocations: 36.08 kB / 327.8 MB, free: 3.062 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,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.001825/1.7, allocations: 483.5 kB / 328.2 MB, free: 2.719 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003809/1.701, allocations: 79.95 kB / 328.3 MB, free: 2.641 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/1.701, allocations: 0 / 328.3 MB, free: 2.641 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001443/1.701, allocations: 31.92 kB / 328.3 MB, free: 2.609 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007085/1.701, allocations: 56.5 kB / 328.4 MB, free: 2.555 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001137/1.703, allocations: 412.6 kB / 328.8 MB, free: 2.113 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003964/1.703, allocations: 0.7439 MB / 329.5 MB, free: 1.344 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001554/1.703, allocations: 25.53 kB / 329.6 MB, free: 1.32 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.731e-05/1.703, allocations: 23.42 kB / 329.6 MB, free: 1.297 MB / 250.7 MB Notification: Performance of SimCode: time 6.71e-07/1.703, allocations: 0 / 329.6 MB, free: 1.297 MB / 250.7 MB Notification: Performance of Templates: time 0.01095/1.714, allocations: 2.715 MB / 332.3 MB, free: 14.61 MB / 266.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches