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.001528/0.001528, allocations: 186.4 kB / 16.44 MB, free: 5.672 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.922/1.922, allocations: 205.4 MB / 222.6 MB, free: 9.117 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.001132/0.001132, allocations: 88.17 kB / 270.9 MB, free: 8.371 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.1036/0.1036, allocations: 12.59 MB / 331.8 MB, free: 11.4 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005275/0.0005276, allocations: 16 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08852/0.08908, allocations: 50.38 MB / 442.4 MB, free: 16.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4348/0.524, allocations: 82.03 MB / 0.5121 GB, free: 12.15 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002827/0.5243, allocations: 81.33 kB / 0.5122 GB, free: 12.14 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02393/0.5483, allocations: 6.061 MB / 0.5181 GB, free: 9.379 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5483, allocations: 0 / 0.5181 GB, free: 9.379 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.606e-05/0.5483, allocations: 4 kB / 0.5181 GB, free: 9.375 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.0007685/0.5491, allocations: 0.5406 MB / 0.5186 GB, free: 8.801 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.5492, allocations: 12.03 kB / 0.5186 GB, free: 8.789 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.216e-05/0.5493, allocations: 23.72 kB / 0.5187 GB, free: 8.766 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004897/0.5498, allocations: 290.3 kB / 0.5189 GB, free: 8.461 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.619e-05/0.5498, allocations: 11.89 kB / 0.5189 GB, free: 8.453 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.011e-05/0.5498, allocations: 8 kB / 0.5189 GB, free: 8.445 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003938/0.5502, allocations: 176.4 kB / 0.5191 GB, free: 8.273 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.5503, allocations: 0 / 0.5191 GB, free: 8.273 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.042e-05/0.5503, allocations: 7.188 kB / 0.5191 GB, free: 8.27 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.5503, allocations: 4 kB / 0.5191 GB, free: 8.266 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001695/0.5505, allocations: 42.47 kB / 0.5192 GB, free: 8.234 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006747/0.5512, allocations: 487.3 kB / 0.5196 GB, free: 7.75 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003339/0.5515, allocations: 143 kB / 0.5198 GB, free: 7.598 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.913e-05/0.5516, allocations: 3.984 kB / 0.5198 GB, free: 7.594 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002258/0.5518, allocations: 102.6 kB / 0.5199 GB, free: 7.492 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 2.274e-06/0.5518, allocations: 3.938 kB / 0.5199 GB, free: 7.488 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005766/0.5524, allocations: 172.9 kB / 0.52 GB, free: 7.348 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.679e-05/0.5525, allocations: 191.4 kB / 0.5202 GB, free: 7.121 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004302/0.5529, allocations: 303.1 kB / 0.5205 GB, free: 6.867 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.394e-05/0.553, allocations: 32.2 kB / 0.5205 GB, free: 6.832 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.047e-05/0.5531, allocations: 180.6 kB / 0.5207 GB, free: 6.672 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.426e-05/0.5531, allocations: 21.31 kB / 0.5207 GB, free: 6.656 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.798e-06/0.5531, allocations: 0 / 0.5207 GB, free: 6.656 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.03e-05/0.5532, allocations: 321.3 kB / 0.521 GB, free: 6.336 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001126/0.5533, allocations: 33.98 kB / 0.5211 GB, free: 6.312 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001679/0.5535, allocations: 100.9 kB / 0.5212 GB, free: 6.199 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001331/0.5537, allocations: 46.36 kB / 0.5212 GB, free: 6.168 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.5537, allocations: 0 / 0.5212 GB, free: 6.168 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003412/0.554, allocations: 123.1 kB / 0.5213 GB, free: 6.066 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.554, allocations: 4 kB / 0.5213 GB, free: 6.062 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.5541, allocations: 4 kB / 0.5213 GB, free: 6.059 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.5541, allocations: 0 / 0.5213 GB, free: 6.059 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001899/0.5543, allocations: 27.92 kB / 0.5214 GB, free: 6.031 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.785e-06/0.5543, allocations: 4.156 kB / 0.5214 GB, free: 6.027 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000138/0.5545, allocations: 11.59 kB / 0.5214 GB, free: 6.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.583e-05/0.5545, allocations: 8 kB / 0.5214 GB, free: 6.012 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001674/0.5547, allocations: 159.1 kB / 0.5215 GB, free: 5.859 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/0.5548, allocations: 75.86 kB / 0.5216 GB, free: 5.785 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003933/0.5552, allocations: 126.4 kB / 0.5217 GB, free: 5.684 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.5552, allocations: 4.062 kB / 0.5217 GB, free: 5.68 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.5552, allocations: 0 / 0.5217 GB, free: 5.68 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.5552, allocations: 7.984 kB / 0.5217 GB, free: 5.672 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002504/0.5555, allocations: 252.6 kB / 0.522 GB, free: 5.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.5555, allocations: 3.984 kB / 0.522 GB, free: 5.406 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001274/0.5557, allocations: 15.88 kB / 0.522 GB, free: 5.395 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.5557, allocations: 4 kB / 0.522 GB, free: 5.391 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.5557, allocations: 3.984 kB / 0.522 GB, free: 5.387 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.5557, allocations: 4 kB / 0.522 GB, free: 5.383 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.5557, allocations: 80 / 0.522 GB, free: 5.383 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003982/0.5561, allocations: 227.8 kB / 0.5222 GB, free: 5.145 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001371/0.5563, allocations: 128.5 kB / 0.5224 GB, free: 5.012 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.85e-05/0.5563, allocations: 4 kB / 0.5224 GB, free: 5.008 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001186/0.5565, allocations: 10.73 kB / 0.5224 GB, free: 5 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.194e-05/0.5565, allocations: 18.5 kB / 0.5224 GB, free: 4.984 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.612e-05/0.5566, allocations: 8.062 kB / 0.5224 GB, free: 4.977 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003061/0.5569, allocations: 239.7 kB / 0.5226 GB, free: 4.785 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.5569, allocations: 0 / 0.5226 GB, free: 4.785 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004065/0.5573, allocations: 54.25 kB / 0.5227 GB, free: 4.738 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) * Number of clocked states: 0 () * 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.001128/0.5585, allocations: 445.6 kB / 0.5231 GB, free: 4.309 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003832/0.5589, allocations: 96.38 kB / 0.5232 GB, free: 4.234 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.5589, allocations: 3.188 kB / 0.5232 GB, free: 4.234 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001583/0.559, allocations: 34.11 kB / 0.5232 GB, free: 4.207 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005087/0.5596, allocations: 66.17 kB / 0.5233 GB, free: 4.156 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008241/0.5604, allocations: 465.6 kB / 0.5237 GB, free: 3.707 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002174/0.5606, allocations: 0.75 MB / 0.5245 GB, free: 2.938 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.51e-05/0.5607, allocations: 27.42 kB / 0.5245 GB, free: 2.91 MB / 330.7 MB Notification: Performance of SimCode: time 8.62e-07/0.5607, allocations: 4 kB / 0.5245 GB, free: 2.906 MB / 330.7 MB Notification: Performance of Templates: time 0.006579/0.5673, allocations: 3.026 MB / 0.5274 GB, free: 15.9 MB / 346.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