Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.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.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008058/0.0008059, allocations: 98.31 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.08768/0.08768, allocations: 12.63 MB / 29.41 MB, free: 6.074 MB / 24.77 MB Notification: Performance of FrontEnd - loaded program: time 0.0001656/0.0001657, allocations: 0 / 40.28 MB, free: 0.6055 MB / 24.77 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.004955/0.005138, allocations: 2.831 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.Hold): time 1.597/1.602, allocations: 277.9 MB / 321 MB, free: 10.33 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00221/1.605, allocations: 1.442 MB / 322.4 MB, free: 8.797 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001512/1.605, allocations: 3.938 kB / 322.4 MB, free: 8.793 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003495/1.605, allocations: 64.83 kB / 322.5 MB, free: 8.73 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002546/1.605, allocations: 80.28 kB / 322.6 MB, free: 8.652 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007886/1.606, allocations: 234.9 kB / 322.8 MB, free: 8.426 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002247/1.606, allocations: 167.5 kB / 323 MB, free: 8.262 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001867/1.607, allocations: 69.73 kB / 323 MB, free: 8.195 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001089/1.607, allocations: 67.66 kB / 323.1 MB, free: 8.129 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001062/1.607, allocations: 69.47 kB / 323.2 MB, free: 8.062 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.847e-05/1.607, allocations: 0 / 323.2 MB, free: 8.062 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001426/1.607, allocations: 55.89 kB / 323.2 MB, free: 8.008 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.52e-05/1.607, allocations: 43.84 kB / 323.3 MB, free: 7.965 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001037/1.607, allocations: 101.1 kB / 323.4 MB, free: 7.859 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003001/1.607, allocations: 231.9 kB / 323.6 MB, free: 7.633 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/1.607, allocations: 0 / 323.6 MB, free: 7.633 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.194e-06/1.607, allocations: 3.188 kB / 323.6 MB, free: 7.633 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.416e-06/1.608, allocations: 0 / 323.6 MB, free: 7.633 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007357/1.608, allocations: 0.5001 MB / 324.1 MB, free: 7.078 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/1.608, allocations: 8.031 kB / 324.1 MB, free: 7.07 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.877e-05/1.608, allocations: 28.59 kB / 324.1 MB, free: 7.043 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003676/1.609, allocations: 283.6 kB / 324.4 MB, free: 6.73 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.456e-05/1.609, allocations: 9.219 kB / 324.4 MB, free: 6.723 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.514e-05/1.609, allocations: 12.12 kB / 324.4 MB, free: 6.711 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004037/1.609, allocations: 167.8 kB / 324.6 MB, free: 6.52 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/1.609, allocations: 0 / 324.6 MB, free: 6.52 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.666e-05/1.609, allocations: 4.625 kB / 324.6 MB, free: 6.516 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/1.609, allocations: 4 kB / 324.6 MB, free: 6.512 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001253/1.609, allocations: 40.94 kB / 324.6 MB, free: 6.473 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006402/1.61, allocations: 481.1 kB / 325.1 MB, free: 5.945 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002901/1.61, allocations: 142.1 kB / 325.2 MB, free: 5.773 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001159/1.61, allocations: 62.38 kB / 325.3 MB, free: 5.703 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.131e-05/1.611, allocations: 4 kB / 325.3 MB, free: 5.699 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002564/1.611, allocations: 101.8 kB / 325.4 MB, free: 5.582 MB / 250.7 MB Notification: Performance of pre-optimization done (n=11): time 1.302e-06/1.611, allocations: 1.938 kB / 325.4 MB, free: 5.582 MB / 250.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004349/1.611, allocations: 161.3 kB / 325.6 MB, free: 5.418 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001343/1.611, allocations: 185.2 kB / 325.8 MB, free: 5.195 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003806/1.612, allocations: 333.2 kB / 326.1 MB, free: 4.863 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.173e-05/1.612, allocations: 29.7 kB / 326.1 MB, free: 4.828 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/1.612, allocations: 132.4 kB / 326.2 MB, free: 4.691 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.487e-05/1.612, allocations: 15.89 kB / 326.3 MB, free: 4.676 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.321e-06/1.612, allocations: 3.938 kB / 326.3 MB, free: 4.672 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000166/1.612, allocations: 334.8 kB / 326.6 MB, free: 4.336 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.276e-05/1.612, allocations: 28.61 kB / 326.6 MB, free: 4.309 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001192/1.612, allocations: 97.98 kB / 326.7 MB, free: 4.188 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000179/1.613, allocations: 96.7 kB / 326.8 MB, free: 4.078 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/1.613, allocations: 0 / 326.8 MB, free: 4.078 MB / 250.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002566/1.613, allocations: 143.2 kB / 326.9 MB, free: 3.934 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/1.613, allocations: 4 kB / 326.9 MB, free: 3.93 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/1.613, allocations: 1.156 kB / 326.9 MB, free: 3.93 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/1.613, allocations: 4 kB / 326.9 MB, free: 3.926 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/1.613, allocations: 23.92 kB / 327 MB, free: 3.902 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/1.613, allocations: 4.719 kB / 327 MB, free: 3.898 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.532e-05/1.613, allocations: 15.88 kB / 327 MB, free: 3.883 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.168e-05/1.613, allocations: 4.531 kB / 327 MB, free: 3.879 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample.y,hold.u,hold.y,shiftSample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001553/1.613, allocations: 157.8 kB / 327.2 MB, free: 3.715 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.801e-05/1.613, allocations: 73.34 kB / 327.2 MB, free: 3.637 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.324e-05/1.613, allocations: 29.7 kB / 327.3 MB, free: 3.605 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/1.613, allocations: 0 / 327.3 MB, free: 3.605 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.827e-05/1.614, allocations: 4 kB / 327.3 MB, free: 3.602 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/1.614, allocations: 3.938 kB / 327.3 MB, free: 3.598 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002491/1.614, allocations: 253.4 kB / 327.5 MB, free: 3.301 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/1.614, allocations: 4 kB / 327.5 MB, free: 3.297 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.398e-05/1.614, allocations: 23.98 kB / 327.5 MB, free: 3.273 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/1.614, allocations: 0 / 327.5 MB, free: 3.273 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/1.614, allocations: 4 kB / 327.5 MB, free: 3.27 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/1.614, allocations: 0 / 327.5 MB, free: 3.27 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/1.614, allocations: 0 / 327.5 MB, free: 3.27 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000276/1.614, allocations: 179.4 kB / 327.7 MB, free: 3.066 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001155/1.614, allocations: 124.7 kB / 327.8 MB, free: 2.926 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.337e-05/1.614, allocations: 7.984 kB / 327.8 MB, free: 2.918 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.629e-05/1.614, allocations: 4 kB / 327.8 MB, free: 2.914 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.561e-05/1.615, allocations: 15.86 kB / 327.9 MB, free: 2.898 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.031e-05/1.615, allocations: 12 kB / 327.9 MB, free: 2.887 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002212/1.615, allocations: 233.9 kB / 328.1 MB, free: 2.656 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.615, allocations: 0 / 328.1 MB, free: 2.656 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002671/1.615, allocations: 39.98 kB / 328.1 MB, free: 2.617 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.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 (11): * Single equations (assignments): 9 * 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.001018/1.616, allocations: 483.9 kB / 328.6 MB, free: 2.273 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002515/1.616, allocations: 79.89 kB / 328.7 MB, free: 2.195 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.239e-06/1.616, allocations: 0 / 328.7 MB, free: 2.195 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001336/1.616, allocations: 35.92 kB / 328.7 MB, free: 2.16 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004588/1.617, allocations: 79.62 kB / 328.8 MB, free: 2.086 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006819/1.618, allocations: 429.1 kB / 329.2 MB, free: 1.629 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003395/1.618, allocations: 0.7479 MB / 330 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.493e-05/1.618, allocations: 29.78 kB / 330 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.384e-05/1.618, allocations: 27.42 kB / 330 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of SimCode: time 4.1e-07/1.618, allocations: 0 / 330 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of Templates: time 0.006455/1.625, allocations: 2.779 MB / 332.8 MB, free: 14.04 MB / 266.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches