Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample.y|shiftSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample.y|shiftSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001076/0.001076, allocations: 193.7 kB / 7.849 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.341/1.341, allocations: 205.2 MB / 213.5 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008628/0.0008628, allocations: 97.83 kB / 261.5 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07236/0.07236, allocations: 12.59 MB / 322 MB, free: 0.918 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.583e-06/6.613e-06, allocations: 4 kB / 378.4 MB, free: 75.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07999/0.08001, allocations: 50.37 MB / 428.8 MB, free: 25.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2602/0.3402, allocations: 81.11 MB / 0.4979 GB, free: 11.52 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002013/0.3405, allocations: 81.03 kB / 0.498 GB, free: 11.52 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01406/0.3545, allocations: 5.458 MB / 0.5033 GB, free: 10.8 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.857e-05/0.3546, allocations: 7.031 kB / 0.5033 GB, free: 10.8 MB / 330.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.0004409/0.3551, allocations: 487.5 kB / 0.5038 GB, free: 10.33 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.3551, allocations: 7.719 kB / 0.5038 GB, free: 10.33 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.185e-05/0.3552, allocations: 23.22 kB / 0.5038 GB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003347/0.3555, allocations: 259.5 kB / 0.5041 GB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.672e-05/0.3555, allocations: 0 / 0.5041 GB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.961e-05/0.3556, allocations: 7.812 kB / 0.5041 GB, free: 10.08 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001115/0.3557, allocations: 41.73 kB / 0.5041 GB, free: 10.08 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002292/0.3559, allocations: 147.2 kB / 0.5043 GB, free: 9.969 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.3559, allocations: 3.844 kB / 0.5043 GB, free: 9.969 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.323e-05/0.356, allocations: 0 / 0.5043 GB, free: 9.969 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.356, allocations: 0 / 0.5043 GB, free: 9.969 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003967/0.3564, allocations: 432 kB / 0.5047 GB, free: 9.59 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001358/0.3565, allocations: 122.8 kB / 0.5048 GB, free: 9.484 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.761e-05/0.3566, allocations: 51.69 kB / 0.5048 GB, free: 9.453 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.235e-05/0.3566, allocations: 7.703 kB / 0.5049 GB, free: 9.449 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.147e-05/0.3567, allocations: 91.16 kB / 0.5049 GB, free: 9.367 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 1.302e-06/0.3567, allocations: 0 / 0.5049 GB, free: 9.367 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002222/0.3569, allocations: 109.6 kB / 0.505 GB, free: 9.316 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.432e-05/0.357, allocations: 162.1 kB / 0.5052 GB, free: 9.121 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001906/0.3572, allocations: 239.9 kB / 0.5054 GB, free: 9 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.284e-05/0.3572, allocations: 25.7 kB / 0.5055 GB, free: 8.969 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.224e-05/0.3573, allocations: 99.47 kB / 0.5055 GB, free: 8.879 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.072e-05/0.3573, allocations: 18.78 kB / 0.5056 GB, free: 8.867 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.708e-06/0.3573, allocations: 0 / 0.5056 GB, free: 8.867 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.383e-05/0.3573, allocations: 330.2 kB / 0.5059 GB, free: 8.547 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.631e-05/0.3574, allocations: 22.06 kB / 0.5059 GB, free: 8.543 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.61e-05/0.3575, allocations: 82.02 kB / 0.506 GB, free: 8.469 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.922e-05/0.3575, allocations: 26.14 kB / 0.506 GB, free: 8.465 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.3575, allocations: 7.75 kB / 0.506 GB, free: 8.461 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000148/0.3577, allocations: 115.9 kB / 0.5061 GB, free: 8.402 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/0.3577, allocations: 3.844 kB / 0.5061 GB, free: 8.402 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.3577, allocations: 3.781 kB / 0.5061 GB, free: 8.402 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.3577, allocations: 0 / 0.5061 GB, free: 8.402 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.348e-05/0.3578, allocations: 11.03 kB / 0.5061 GB, free: 8.402 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.3578, allocations: 7.812 kB / 0.5061 GB, free: 8.398 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.767e-05/0.3579, allocations: 11.77 kB / 0.5062 GB, free: 8.391 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.478e-06/0.3579, allocations: 3.812 kB / 0.5062 GB, free: 8.391 MB / 330.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.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sample.u,shiftSample.y,hold.u,hold.y,shiftSample.u,sample.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.397e-05/0.358, allocations: 120.3 kB / 0.5063 GB, free: 8.273 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.442e-05/0.3581, allocations: 71.12 kB / 0.5063 GB, free: 8.223 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001669/0.3583, allocations: 94.52 kB / 0.5064 GB, free: 8.18 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.3583, allocations: 0 / 0.5064 GB, free: 8.18 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.3583, allocations: 3.531 kB / 0.5064 GB, free: 8.18 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.3583, allocations: 3.984 kB / 0.5064 GB, free: 8.176 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001503/0.3585, allocations: 205.1 kB / 0.5066 GB, free: 7.992 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.3585, allocations: 0 / 0.5066 GB, free: 7.992 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.346e-05/0.3585, allocations: 14.94 kB / 0.5067 GB, free: 7.988 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.3585, allocations: 3.906 kB / 0.5067 GB, free: 7.984 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.17e-05/0.3585, allocations: 7.75 kB / 0.5067 GB, free: 7.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.3585, allocations: 0 / 0.5067 GB, free: 7.98 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.3585, allocations: 0 / 0.5067 GB, free: 7.98 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000182/0.3587, allocations: 200.3 kB / 0.5069 GB, free: 7.816 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.477e-05/0.3588, allocations: 117.2 kB / 0.507 GB, free: 7.703 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.495e-05/0.3589, allocations: 3.719 kB / 0.507 GB, free: 7.703 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.054e-05/0.359, allocations: 3.688 kB / 0.507 GB, free: 7.703 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.982e-05/0.359, allocations: 7.703 kB / 0.507 GB, free: 7.699 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.507e-06/0.359, allocations: 10.94 kB / 0.507 GB, free: 7.695 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001342/0.3592, allocations: 182 kB / 0.5072 GB, free: 7.602 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002587/0.3594, allocations: 45.98 kB / 0.5072 GB, free: 7.586 MB / 330.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.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,sample.u,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006445/0.3601, allocations: 319.9 kB / 0.5075 GB, free: 7.336 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001739/0.3603, allocations: 71.23 kB / 0.5076 GB, free: 7.328 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3603, allocations: 4.25 kB / 0.5076 GB, free: 7.324 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.179e-05/0.3603, allocations: 37.94 kB / 0.5076 GB, free: 7.316 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003366/0.3607, allocations: 57.89 kB / 0.5077 GB, free: 7.297 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004353/0.3611, allocations: 242.6 kB / 0.5079 GB, free: 7.148 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001937/0.3613, allocations: 0.7605 MB / 0.5087 GB, free: 6.41 MB / 330.7 MB Notification: Performance of SimCode: time 2.91e-07/0.3613, allocations: 0 / 0.5087 GB, free: 6.41 MB / 330.7 MB Notification: Performance of Templates: time 0.005353/0.3667, allocations: 2.335 MB / 0.5109 GB, free: 5.242 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches