Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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/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/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_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00163/0.001631, allocations: 182 kB / 17.46 MB, free: 4.359 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.907/2.907, allocations: 205.4 MB / 223.6 MB, free: 9.031 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.0009293/0.0009293, allocations: 88.73 kB / 272 MB, free: 8.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1414/0.1414, allocations: 12.2 MB / 332.4 MB, free: 11.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008007/0.0008008, allocations: 16 kB / 392.7 MB, free: 67.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1444, allocations: 50.29 MB / 443 MB, free: 16.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5017/0.6463, allocations: 81.95 MB / 0.5127 GB, free: 12.43 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003518/0.6467, allocations: 88.97 kB / 0.5127 GB, free: 12.41 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02286/0.6696, allocations: 6.415 MB / 0.519 GB, free: 9.773 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.846e-06/0.6696, allocations: 0 / 0.519 GB, free: 9.773 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.874e-05/0.6697, allocations: 8 kB / 0.519 GB, free: 9.766 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.0008742/0.6706, allocations: 0.5059 MB / 0.5195 GB, free: 9.219 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.6706, allocations: 8.031 kB / 0.5195 GB, free: 9.211 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.616e-05/0.6707, allocations: 24.66 kB / 0.5195 GB, free: 9.188 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005159/0.6713, allocations: 268.6 kB / 0.5198 GB, free: 8.91 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.883e-05/0.6713, allocations: 7.5 kB / 0.5198 GB, free: 8.906 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.902e-05/0.6714, allocations: 11.73 kB / 0.5198 GB, free: 8.898 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005288/0.6719, allocations: 178.5 kB / 0.52 GB, free: 8.727 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/0.6719, allocations: 4.188 kB / 0.52 GB, free: 8.723 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.438e-05/0.672, allocations: 7 kB / 0.52 GB, free: 8.719 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.672, allocations: 0 / 0.52 GB, free: 8.719 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001773/0.6722, allocations: 42.23 kB / 0.52 GB, free: 8.688 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007539/0.673, allocations: 456.5 kB / 0.5205 GB, free: 8.227 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003423/0.6733, allocations: 138.8 kB / 0.5206 GB, free: 8.074 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001543/0.6735, allocations: 57.36 kB / 0.5207 GB, free: 8.02 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.464e-05/0.6736, allocations: 11.98 kB / 0.5207 GB, free: 8.008 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002275/0.6738, allocations: 90.31 kB / 0.5208 GB, free: 7.918 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 2.134e-06/0.6738, allocations: 0 / 0.5208 GB, free: 7.918 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.000622/0.6744, allocations: 163.3 kB / 0.5209 GB, free: 7.781 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.339e-05/0.6745, allocations: 161.5 kB / 0.5211 GB, free: 7.59 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004526/0.675, allocations: 269.7 kB / 0.5213 GB, free: 7.363 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.597e-05/0.6751, allocations: 29.7 kB / 0.5214 GB, free: 7.328 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.832e-05/0.6752, allocations: 112.2 kB / 0.5215 GB, free: 7.234 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.95e-05/0.6752, allocations: 19.56 kB / 0.5215 GB, free: 7.219 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.105e-05/0.6752, allocations: 7.25 kB / 0.5215 GB, free: 7.215 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.879e-05/0.6753, allocations: 338.4 kB / 0.5218 GB, free: 6.883 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001137/0.6755, allocations: 22.55 kB / 0.5218 GB, free: 6.867 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001529/0.6756, allocations: 78.42 kB / 0.5219 GB, free: 6.777 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002452/0.6759, allocations: 90.11 kB / 0.522 GB, free: 6.691 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.6759, allocations: 0 / 0.522 GB, free: 6.691 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003872/0.6763, allocations: 133.3 kB / 0.5221 GB, free: 6.578 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.691e-05/0.6764, allocations: 4.156 kB / 0.5221 GB, free: 6.574 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.6764, allocations: 4 kB / 0.5221 GB, free: 6.57 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.312e-05/0.6764, allocations: 4 kB / 0.5221 GB, free: 6.566 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001441/0.6766, allocations: 12 kB / 0.5221 GB, free: 6.555 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.26e-05/0.6766, allocations: 7.875 kB / 0.5221 GB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001602/0.6768, allocations: 19.7 kB / 0.5222 GB, free: 6.531 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/0.6768, allocations: 7.938 kB / 0.5222 GB, free: 6.523 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.0001659/0.677, allocations: 147.3 kB / 0.5223 GB, free: 6.383 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001287/0.6772, allocations: 67.64 kB / 0.5224 GB, free: 6.316 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003644/0.6775, allocations: 118.7 kB / 0.5225 GB, free: 6.219 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.6776, allocations: 0 / 0.5225 GB, free: 6.219 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.6776, allocations: 4 kB / 0.5225 GB, free: 6.215 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.6776, allocations: 4 kB / 0.5225 GB, free: 6.211 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002958/0.6779, allocations: 235.3 kB / 0.5227 GB, free: 5.961 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.391e-06/0.6779, allocations: 4 kB / 0.5227 GB, free: 5.957 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.944e-05/0.678, allocations: 11.92 kB / 0.5227 GB, free: 5.945 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.7e-06/0.678, allocations: 0 / 0.5227 GB, free: 5.945 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.018e-05/0.678, allocations: 8.062 kB / 0.5227 GB, free: 5.938 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.6781, allocations: 0 / 0.5227 GB, free: 5.938 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.6781, allocations: 4 kB / 0.5228 GB, free: 5.934 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004056/0.6785, allocations: 185.9 kB / 0.5229 GB, free: 5.754 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001516/0.6787, allocations: 121.9 kB / 0.523 GB, free: 5.625 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.944e-05/0.6787, allocations: 4 kB / 0.523 GB, free: 5.621 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001247/0.6789, allocations: 15.05 kB / 0.5231 GB, free: 5.609 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.057e-05/0.6789, allocations: 7.984 kB / 0.5231 GB, free: 5.602 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.408e-05/0.679, allocations: 7.125 kB / 0.5231 GB, free: 5.598 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003136/0.6793, allocations: 192.8 kB / 0.5233 GB, free: 5.438 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.92e-07/0.6793, allocations: 0 / 0.5233 GB, free: 5.438 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005506/0.6799, allocations: 41.89 kB / 0.5233 GB, free: 5.402 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.001552/0.6815, allocations: 435.9 kB / 0.5237 GB, free: 4.98 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004054/0.6819, allocations: 94.08 kB / 0.5238 GB, free: 4.906 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.6819, allocations: 0 / 0.5238 GB, free: 4.906 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001442/0.6821, allocations: 34.48 kB / 0.5238 GB, free: 4.883 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000744/0.6828, allocations: 60.81 kB / 0.5239 GB, free: 4.836 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009681/0.6838, allocations: 398.8 kB / 0.5243 GB, free: 4.441 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002283/0.6841, allocations: 0.7313 MB / 0.525 GB, free: 3.688 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.602e-05/0.6842, allocations: 19.44 kB / 0.525 GB, free: 3.668 MB / 330.7 MB Notification: Performance of SimCode: time 4.5e-07/0.6842, allocations: 7.938 kB / 0.525 GB, free: 3.66 MB / 330.7 MB Notification: Performance of Templates: time 0.008544/0.6927, allocations: 2.685 MB / 0.5276 GB, free: 0.9961 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches