Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00231/0.00231, allocations: 181 kB / 13.7 MB, free: 1.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.188/2.188, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001061/0.001061, allocations: 82.72 kB / 267.6 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09879/0.09879, allocations: 12.6 MB / 328.2 MB, free: 11.15 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.388e-05/3.403e-05, allocations: 4 kB / 386 MB, free: 1.301 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3009/0.301, allocations: 50.37 MB / 436.3 MB, free: 14.15 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1439/0.445, allocations: 81.95 MB / 0.5061 GB, free: 12.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003233/0.4454, allocations: 79.95 kB / 0.5062 GB, free: 12.02 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02839/0.4738, allocations: 6.049 MB / 0.5121 GB, free: 5.957 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.881e-06/0.4739, allocations: 4 kB / 0.5121 GB, free: 5.953 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.046e-05/0.4739, allocations: 0 / 0.5121 GB, free: 5.953 MB / 362.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.000865/0.4748, allocations: 0.4956 MB / 0.5126 GB, free: 5.406 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.629e-05/0.4749, allocations: 8.031 kB / 0.5126 GB, free: 5.398 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001076/0.475, allocations: 23.72 kB / 0.5126 GB, free: 5.375 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007018/0.4757, allocations: 290.5 kB / 0.5129 GB, free: 5.051 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.627e-05/0.4757, allocations: 7.953 kB / 0.5129 GB, free: 5.043 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.818e-05/0.4758, allocations: 12 kB / 0.5129 GB, free: 5.031 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004537/0.4763, allocations: 164.3 kB / 0.5131 GB, free: 4.84 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.4763, allocations: 7.938 kB / 0.5131 GB, free: 4.832 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.163e-05/0.4763, allocations: 8 kB / 0.5131 GB, free: 4.824 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.4763, allocations: 0 / 0.5131 GB, free: 4.824 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001496/0.4765, allocations: 43.92 kB / 0.5132 GB, free: 4.781 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009504/0.4775, allocations: 490.5 kB / 0.5136 GB, free: 4.242 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002952/0.4778, allocations: 134.5 kB / 0.5137 GB, free: 4.074 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001374/0.478, allocations: 63.55 kB / 0.5138 GB, free: 4 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.037e-05/0.478, allocations: 3.984 kB / 0.5138 GB, free: 3.996 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002302/0.4782, allocations: 101 kB / 0.5139 GB, free: 3.879 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 2.926e-06/0.4783, allocations: 0 / 0.5139 GB, free: 3.879 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004628/0.4787, allocations: 133.3 kB / 0.514 GB, free: 3.742 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001241/0.4789, allocations: 191.9 kB / 0.5142 GB, free: 3.512 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000553/0.4794, allocations: 295.1 kB / 0.5145 GB, free: 3.215 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.508e-05/0.4795, allocations: 33.7 kB / 0.5145 GB, free: 3.176 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.4796, allocations: 182.8 kB / 0.5147 GB, free: 2.992 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.052e-05/0.4797, allocations: 15.81 kB / 0.5147 GB, free: 2.977 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.126e-05/0.4797, allocations: 4.094 kB / 0.5147 GB, free: 2.973 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.4799, allocations: 326.7 kB / 0.515 GB, free: 2.645 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.02e-05/0.48, allocations: 24 kB / 0.5151 GB, free: 2.621 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001756/0.4802, allocations: 99.7 kB / 0.5152 GB, free: 2.496 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000119/0.4803, allocations: 39.03 kB / 0.5152 GB, free: 2.461 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.4803, allocations: 0 / 0.5152 GB, free: 2.461 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003278/0.4806, allocations: 121.6 kB / 0.5153 GB, free: 2.336 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.4807, allocations: 4 kB / 0.5153 GB, free: 2.332 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.4807, allocations: 4.156 kB / 0.5153 GB, free: 2.328 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.4807, allocations: 4 kB / 0.5153 GB, free: 2.324 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002439/0.481, allocations: 23.98 kB / 0.5153 GB, free: 2.301 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.295e-05/0.481, allocations: 0 / 0.5153 GB, free: 2.301 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001894/0.4812, allocations: 19.77 kB / 0.5154 GB, free: 2.281 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.015e-05/0.4812, allocations: 8 kB / 0.5154 GB, free: 2.273 MB / 362.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 0.0001279/0.4814, allocations: 120.7 kB / 0.5155 GB, free: 2.148 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001628/0.4816, allocations: 73.34 kB / 0.5156 GB, free: 2.07 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003673/0.4819, allocations: 123.6 kB / 0.5157 GB, free: 1.941 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.482, allocations: 0 / 0.5157 GB, free: 1.941 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.482, allocations: 4 kB / 0.5157 GB, free: 1.938 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.482, allocations: 0 / 0.5157 GB, free: 1.938 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003552/0.4824, allocations: 253.5 kB / 0.5159 GB, free: 1.641 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.4824, allocations: 0 / 0.5159 GB, free: 1.641 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001683/0.4826, allocations: 27.92 kB / 0.5159 GB, free: 1.613 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.422e-06/0.4826, allocations: 0 / 0.5159 GB, free: 1.613 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.034e-05/0.4826, allocations: 4 kB / 0.516 GB, free: 1.609 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.4826, allocations: 7.953 kB / 0.516 GB, free: 1.602 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.668e-06/0.4826, allocations: 7.984 kB / 0.516 GB, free: 1.594 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000434/0.4831, allocations: 220.4 kB / 0.5162 GB, free: 1.332 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001917/0.4833, allocations: 128.8 kB / 0.5163 GB, free: 1.188 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.205e-05/0.4834, allocations: 4 kB / 0.5163 GB, free: 1.184 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001424/0.4835, allocations: 8 kB / 0.5163 GB, free: 1.176 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.026e-05/0.4836, allocations: 11.94 kB / 0.5163 GB, free: 1.164 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.077e-05/0.4836, allocations: 4 kB / 0.5163 GB, free: 1.16 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004214/0.4841, allocations: 243.1 kB / 0.5166 GB, free: 0.9219 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.82e-07/0.4841, allocations: 0 / 0.5166 GB, free: 0.9219 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004484/0.4845, allocations: 59.88 kB / 0.5166 GB, free: 0.8633 MB / 362.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.00121/0.4857, allocations: 397 kB / 0.517 GB, free: 480 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003926/0.4862, allocations: 91.91 kB / 0.5171 GB, free: 388 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.4862, allocations: 0 / 0.5171 GB, free: 388 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001168/0.4863, allocations: 35.92 kB / 0.5171 GB, free: 352 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000601/0.4869, allocations: 57.06 kB / 0.5172 GB, free: 296 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2687/0.7556, allocations: 335.9 kB / 0.5175 GB, free: 85.92 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002723/0.7559, allocations: 0.7516 MB / 0.5182 GB, free: 85.22 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001394/0.7561, allocations: 25.22 kB / 0.5182 GB, free: 85.21 MB / 362.7 MB Notification: Performance of SimCode: time 1.202e-06/0.7561, allocations: 1.031 kB / 0.5182 GB, free: 85.21 MB / 362.7 MB Notification: Performance of Templates: time 0.009544/0.7657, allocations: 3.024 MB / 0.5212 GB, free: 85.08 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches