Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.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.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001935/0.001935, allocations: 181.3 kB / 17.46 MB, free: 4.363 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.848/2.848, allocations: 205.4 MB / 223.6 MB, free: 9.035 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.001449/0.00145, allocations: 91.98 kB / 272 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1483/0.1483, allocations: 12.2 MB / 332.4 MB, free: 11.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006981/0.0006983, allocations: 16 kB / 392.7 MB, free: 67.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1288, allocations: 50.28 MB / 443 MB, free: 16.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5031/0.632, allocations: 79.77 MB / 0.5105 GB, free: 12.91 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003545/0.6324, allocations: 86.53 kB / 0.5106 GB, free: 12.9 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02045/0.6529, allocations: 5.141 MB / 0.5156 GB, free: 10.96 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.897e-06/0.653, allocations: 0 / 0.5156 GB, free: 10.96 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.539e-05/0.653, allocations: 3.594 kB / 0.5156 GB, free: 10.96 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0009463/0.654, allocations: 464.9 kB / 0.5161 GB, free: 10.52 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.423e-05/0.654, allocations: 7.656 kB / 0.5161 GB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.138e-05/0.6541, allocations: 40.17 kB / 0.5161 GB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000471/0.6546, allocations: 234.5 kB / 0.5163 GB, free: 10.27 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.444e-05/0.6547, allocations: 8.406 kB / 0.5164 GB, free: 10.27 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.642e-05/0.6547, allocations: 7.812 kB / 0.5164 GB, free: 10.27 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001055/0.6558, allocations: 361.5 kB / 0.5167 GB, free: 10.1 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.463e-05/0.6558, allocations: 4 kB / 0.5167 GB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.272e-05/0.6559, allocations: 7.156 kB / 0.5167 GB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.6559, allocations: 0 / 0.5167 GB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003588/0.6563, allocations: 95.53 kB / 0.5168 GB, free: 10.08 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007825/0.6571, allocations: 364.6 kB / 0.5172 GB, free: 9.742 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006463/0.6577, allocations: 268.5 kB / 0.5174 GB, free: 9.578 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000275/0.658, allocations: 107.1 kB / 0.5175 GB, free: 9.547 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006718/0.6587, allocations: 0.5834 MB / 0.5181 GB, free: 8.867 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.467e-05/0.6588, allocations: 40.88 kB / 0.5181 GB, free: 8.824 MB / 330.7 MB Notification: Performance of pre-optimization done (n=19): time 2.254e-06/0.6588, allocations: 0 / 0.5181 GB, free: 8.824 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008481/0.6596, allocations: 254.2 kB / 0.5184 GB, free: 8.746 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.6598, allocations: 112.3 kB / 0.5185 GB, free: 8.621 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002373/0.66, allocations: 204.3 kB / 0.5187 GB, free: 8.484 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.449e-05/0.6601, allocations: 33.42 kB / 0.5187 GB, free: 8.453 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.298e-05/0.6601, allocations: 102.4 kB / 0.5188 GB, free: 8.367 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.927e-05/0.6602, allocations: 19.25 kB / 0.5188 GB, free: 8.359 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.031e-05/0.6602, allocations: 3.5 kB / 0.5188 GB, free: 8.359 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.638e-05/0.6603, allocations: 326.2 kB / 0.5191 GB, free: 8.039 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.6604, allocations: 41.75 kB / 0.5192 GB, free: 8.031 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001807/0.6606, allocations: 163.9 kB / 0.5193 GB, free: 7.859 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003066/0.6609, allocations: 209.7 kB / 0.5195 GB, free: 7.672 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.6609, allocations: 3.875 kB / 0.5195 GB, free: 7.672 MB / 330.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004769/0.6614, allocations: 214.8 kB / 0.5197 GB, free: 7.586 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.575e-05/0.6615, allocations: 7.688 kB / 0.5197 GB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.6615, allocations: 8.375 kB / 0.5197 GB, free: 7.582 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.763e-05/0.6615, allocations: 7.844 kB / 0.5198 GB, free: 7.578 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002109/0.6617, allocations: 42.67 kB / 0.5198 GB, free: 7.57 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.759e-05/0.6618, allocations: 15.7 kB / 0.5198 GB, free: 7.562 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002066/0.662, allocations: 18.94 kB / 0.5198 GB, free: 7.555 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.309e-05/0.662, allocations: 15.47 kB / 0.5198 GB, free: 7.551 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 6 (sample.noise.seedState[3],$CLKPRE.sample.noise.seedState[3],sample.noise.seedState[2],$CLKPRE.sample.noise.seedState[2],sample.noise.seedState[1],$CLKPRE.sample.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample.noise.seedState[3],sample.noise.seedState[2],sample.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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.0002015/0.6622, allocations: 156.7 kB / 0.52 GB, free: 7.418 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004562/0.6627, allocations: 165.6 kB / 0.5201 GB, free: 7.359 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004988/0.6632, allocations: 193.9 kB / 0.5203 GB, free: 7.285 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.6632, allocations: 3.906 kB / 0.5203 GB, free: 7.285 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.024e-06/0.6633, allocations: 4 kB / 0.5203 GB, free: 7.281 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.6633, allocations: 0 / 0.5203 GB, free: 7.281 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003117/0.6636, allocations: 228.7 kB / 0.5206 GB, free: 7.059 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.678e-06/0.6636, allocations: 3.906 kB / 0.5206 GB, free: 7.059 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002101/0.6638, allocations: 34.84 kB / 0.5206 GB, free: 7.051 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.854e-06/0.6639, allocations: 0 / 0.5206 GB, free: 7.051 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.424e-05/0.6639, allocations: 10.84 kB / 0.5206 GB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.6639, allocations: 0 / 0.5206 GB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.6639, allocations: 0 / 0.5206 GB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000561/0.6645, allocations: 308.2 kB / 0.5209 GB, free: 6.859 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001172/0.6646, allocations: 116.2 kB / 0.521 GB, free: 6.746 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.01e-05/0.6647, allocations: 14.83 kB / 0.521 GB, free: 6.738 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001993/0.6649, allocations: 15.12 kB / 0.521 GB, free: 6.734 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.772e-05/0.6649, allocations: 7.828 kB / 0.521 GB, free: 6.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.857e-05/0.665, allocations: 3.844 kB / 0.5211 GB, free: 6.73 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001598/0.6651, allocations: 140.1 kB / 0.5212 GB, free: 6.637 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.6652, allocations: 0 / 0.5212 GB, free: 6.637 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006103/0.6658, allocations: 38.5 kB / 0.5212 GB, free: 6.605 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 (sample.noise.seedState[1],sample.noise.seedState[2],sample.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample.noise.seedState[1],sample.noise.seedState[2],sample.noise.seedState[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 Backend phase and start with SimCode phase: time 0.0002773/0.6661, allocations: 119.1 kB / 0.5213 GB, free: 6.477 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004908/0.6666, allocations: 145.7 kB / 0.5215 GB, free: 6.363 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.6666, allocations: 4 kB / 0.5215 GB, free: 6.359 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.613e-05/0.6667, allocations: 11.36 kB / 0.5215 GB, free: 6.352 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009189/0.6676, allocations: 153.9 kB / 0.5216 GB, free: 6.223 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009439/0.6685, allocations: 406.1 kB / 0.522 GB, free: 5.824 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002624/0.6688, allocations: 0.7319 MB / 0.5227 GB, free: 5.066 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.052e-05/0.6689, allocations: 19.42 kB / 0.5228 GB, free: 5.047 MB / 330.7 MB Notification: Performance of SimCode: time 1.062e-06/0.6689, allocations: 0 / 0.5228 GB, free: 5.047 MB / 330.7 MB Notification: Performance of Templates: time 0.006841/0.6758, allocations: 2.206 MB / 0.5249 GB, free: 2.859 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches