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-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_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.001464/0.001464, allocations: 185.9 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.945/1.945, allocations: 205.4 MB / 222.6 MB, free: 9.121 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.001164/0.001164, allocations: 79 kB / 270.9 MB, free: 8.383 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.1005/0.1005, allocations: 12.58 MB / 331.8 MB, free: 11.41 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008206/0.0008207, allocations: 20 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08898/0.08984, allocations: 50.37 MB / 442.3 MB, free: 16.5 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4161/0.506, allocations: 81.94 MB / 0.512 GB, free: 12.1 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002983/0.5064, allocations: 85.78 kB / 0.5121 GB, free: 12.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02378/0.5302, allocations: 5.886 MB / 0.5178 GB, free: 9.645 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.5302, allocations: 0 / 0.5178 GB, free: 9.645 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.541e-05/0.5303, allocations: 4 kB / 0.5178 GB, free: 9.641 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.0007979/0.5311, allocations: 0.5019 MB / 0.5183 GB, free: 9.102 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.5311, allocations: 8.031 kB / 0.5183 GB, free: 9.094 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.075e-05/0.5312, allocations: 23.72 kB / 0.5184 GB, free: 9.07 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004696/0.5317, allocations: 259.7 kB / 0.5186 GB, free: 8.801 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.713e-05/0.5317, allocations: 19.16 kB / 0.5186 GB, free: 8.785 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.363e-05/0.5318, allocations: 7.953 kB / 0.5186 GB, free: 8.777 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000395/0.5322, allocations: 164.3 kB / 0.5188 GB, free: 8.617 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.5322, allocations: 0 / 0.5188 GB, free: 8.617 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.8e-05/0.5322, allocations: 4 kB / 0.5188 GB, free: 8.613 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.5322, allocations: 0 / 0.5188 GB, free: 8.613 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001464/0.5324, allocations: 38.8 kB / 0.5188 GB, free: 8.586 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006291/0.533, allocations: 469.9 kB / 0.5193 GB, free: 8.117 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003107/0.5334, allocations: 128.2 kB / 0.5194 GB, free: 7.977 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.752e-05/0.5334, allocations: 4 kB / 0.5194 GB, free: 7.973 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002095/0.5336, allocations: 99.16 kB / 0.5195 GB, free: 7.871 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 2.715e-06/0.5337, allocations: 0 / 0.5195 GB, free: 7.871 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.000529/0.5342, allocations: 156.5 kB / 0.5196 GB, free: 7.742 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.035e-05/0.5343, allocations: 162.6 kB / 0.5198 GB, free: 7.547 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003514/0.5346, allocations: 242.9 kB / 0.52 GB, free: 7.344 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.254e-05/0.5347, allocations: 32.95 kB / 0.5201 GB, free: 7.309 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.63e-05/0.5348, allocations: 168 kB / 0.5202 GB, free: 7.156 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.181e-05/0.5348, allocations: 18.23 kB / 0.5202 GB, free: 7.141 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.04e-05/0.5348, allocations: 7.875 kB / 0.5202 GB, free: 7.137 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.119e-05/0.5349, allocations: 318.8 kB / 0.5205 GB, free: 6.816 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.971e-05/0.535, allocations: 34.23 kB / 0.5206 GB, free: 6.793 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001283/0.5352, allocations: 81.78 kB / 0.5207 GB, free: 6.699 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001113/0.5353, allocations: 30.91 kB / 0.5207 GB, free: 6.68 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.5353, allocations: 0 / 0.5207 GB, free: 6.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003042/0.5356, allocations: 117.3 kB / 0.5208 GB, free: 6.582 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.5357, allocations: 7.984 kB / 0.5208 GB, free: 6.574 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/0.5357, allocations: 7.938 kB / 0.5208 GB, free: 6.566 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.5357, allocations: 0 / 0.5208 GB, free: 6.566 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001239/0.5358, allocations: 15.94 kB / 0.5208 GB, free: 6.551 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.5358, allocations: 4 kB / 0.5208 GB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001411/0.536, allocations: 19.95 kB / 0.5209 GB, free: 6.531 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.414e-05/0.536, allocations: 4 kB / 0.5209 GB, free: 6.527 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.0001513/0.5362, allocations: 148.1 kB / 0.521 GB, free: 6.387 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001147/0.5363, allocations: 68.77 kB / 0.5211 GB, free: 6.316 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000314/0.5366, allocations: 119.8 kB / 0.5212 GB, free: 6.219 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.5367, allocations: 4 kB / 0.5212 GB, free: 6.215 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.5367, allocations: 4.062 kB / 0.5212 GB, free: 6.211 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.5367, allocations: 0 / 0.5212 GB, free: 6.211 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002247/0.5369, allocations: 242.4 kB / 0.5214 GB, free: 5.953 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.5369, allocations: 0 / 0.5214 GB, free: 5.953 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.355e-05/0.537, allocations: 7.984 kB / 0.5214 GB, free: 5.945 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.96e-06/0.537, allocations: 4 kB / 0.5214 GB, free: 5.941 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/0.537, allocations: 3.125 kB / 0.5214 GB, free: 5.941 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.5371, allocations: 4.078 kB / 0.5214 GB, free: 5.938 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.5371, allocations: 3.984 kB / 0.5214 GB, free: 5.934 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003615/0.5374, allocations: 214.5 kB / 0.5216 GB, free: 5.707 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001198/0.5376, allocations: 116.4 kB / 0.5218 GB, free: 5.582 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.545e-05/0.5376, allocations: 7.625 kB / 0.5218 GB, free: 5.578 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001108/0.5377, allocations: 11.98 kB / 0.5218 GB, free: 5.566 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.231e-05/0.5378, allocations: 10.88 kB / 0.5218 GB, free: 5.562 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.661e-05/0.5378, allocations: 7.953 kB / 0.5218 GB, free: 5.555 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000252/0.5381, allocations: 196.8 kB / 0.522 GB, free: 5.395 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5381, allocations: 0 / 0.522 GB, free: 5.395 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000367/0.5385, allocations: 43.17 kB / 0.522 GB, free: 5.355 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.00113/0.5396, allocations: 438.8 kB / 0.5224 GB, free: 4.934 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003765/0.54, allocations: 77.52 kB / 0.5225 GB, free: 4.875 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.54, allocations: 0 / 0.5225 GB, free: 4.875 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000122/0.5402, allocations: 35.8 kB / 0.5225 GB, free: 4.848 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005258/0.5407, allocations: 62.38 kB / 0.5226 GB, free: 4.801 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007535/0.5415, allocations: 406.7 kB / 0.523 GB, free: 4.402 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001956/0.5417, allocations: 0.7393 MB / 0.5237 GB, free: 3.641 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.376e-05/0.5418, allocations: 15.44 kB / 0.5237 GB, free: 3.625 MB / 330.7 MB Notification: Performance of SimCode: time 1.282e-06/0.5418, allocations: 0 / 0.5237 GB, free: 3.625 MB / 330.7 MB Notification: Performance of Templates: time 0.006227/0.548, allocations: 2.704 MB / 0.5264 GB, free: 0.9414 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