Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002785/0.002786, allocations: 181.5 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.885/2.885, 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.001213/0.001213, allocations: 88.34 kB / 272 MB, free: 8.281 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1358/0.1358, allocations: 12.2 MB / 332.4 MB, free: 11.67 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004365/0.0004366, allocations: 16 kB / 392.7 MB, free: 67.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1347, allocations: 50.3 MB / 443 MB, free: 16.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3492/0.484, allocations: 81.86 MB / 0.5126 GB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001956/0.4842, allocations: 83.11 kB / 0.5127 GB, free: 12.45 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01535/0.4996, allocations: 6.871 MB / 0.5194 GB, free: 9.578 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4996, allocations: 4 kB / 0.5194 GB, free: 9.574 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.431e-05/0.4996, allocations: 0 / 0.5194 GB, free: 9.574 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0004711/0.5001, allocations: 0.5102 MB / 0.5199 GB, free: 9.023 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.994e-05/0.5002, allocations: 8.031 kB / 0.5199 GB, free: 9.016 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.694e-05/0.5002, allocations: 20.75 kB / 0.5199 GB, free: 8.996 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002783/0.5005, allocations: 274.3 kB / 0.5202 GB, free: 8.715 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.583e-05/0.5005, allocations: 4.375 kB / 0.5202 GB, free: 8.711 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.497e-05/0.5005, allocations: 7.875 kB / 0.5202 GB, free: 8.707 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00025/0.5008, allocations: 157.9 kB / 0.5203 GB, free: 8.555 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.5008, allocations: 192 / 0.5203 GB, free: 8.555 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.336e-05/0.5008, allocations: 3.938 kB / 0.5203 GB, free: 8.551 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.5008, allocations: 4 kB / 0.5203 GB, free: 8.547 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.577e-05/0.5009, allocations: 42.91 kB / 0.5204 GB, free: 8.516 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003527/0.5013, allocations: 362.6 kB / 0.5207 GB, free: 8.148 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001679/0.5015, allocations: 114.8 kB / 0.5208 GB, free: 8.027 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.619e-05/0.5015, allocations: 48.5 kB / 0.5209 GB, free: 7.98 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.622e-05/0.5016, allocations: 3.75 kB / 0.5209 GB, free: 7.98 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001085/0.5017, allocations: 70.77 kB / 0.5209 GB, free: 7.91 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 1.974e-06/0.5017, allocations: 0 / 0.5209 GB, free: 7.91 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002901/0.502, allocations: 163.4 kB / 0.5211 GB, free: 7.77 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.756e-05/0.502, allocations: 131.8 kB / 0.5212 GB, free: 7.613 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002088/0.5023, allocations: 259.4 kB / 0.5215 GB, free: 7.395 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.231e-05/0.5023, allocations: 33.64 kB / 0.5215 GB, free: 7.359 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.154e-05/0.5023, allocations: 113.3 kB / 0.5216 GB, free: 7.266 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.754e-05/0.5023, allocations: 19.61 kB / 0.5216 GB, free: 7.25 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.248e-06/0.5024, allocations: 4 kB / 0.5216 GB, free: 7.246 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.352e-05/0.5024, allocations: 334.7 kB / 0.522 GB, free: 6.918 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.283e-05/0.5025, allocations: 22.42 kB / 0.522 GB, free: 6.902 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.451e-05/0.5025, allocations: 68.5 kB / 0.522 GB, free: 6.824 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.822e-05/0.5026, allocations: 78.56 kB / 0.5221 GB, free: 6.75 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.5027, allocations: 0 / 0.5221 GB, free: 6.75 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001617/0.5028, allocations: 113.9 kB / 0.5222 GB, free: 6.652 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.057e-05/0.5028, allocations: 4 kB / 0.5222 GB, free: 6.648 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.5028, allocations: 4 kB / 0.5222 GB, free: 6.645 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.128e-05/0.5029, allocations: 0 / 0.5222 GB, free: 6.645 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.705e-05/0.5029, allocations: 27.05 kB / 0.5223 GB, free: 6.621 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.5029, allocations: 0 / 0.5223 GB, free: 6.621 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.464e-05/0.503, allocations: 15.84 kB / 0.5223 GB, free: 6.605 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.825e-06/0.503, allocations: 0 / 0.5223 GB, free: 6.605 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample.y,subSample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 7.99e-05/0.5031, allocations: 151.9 kB / 0.5224 GB, free: 6.461 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.039e-05/0.5032, allocations: 61.38 kB / 0.5225 GB, free: 6.398 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001893/0.5034, allocations: 120.3 kB / 0.5226 GB, free: 6.293 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.5034, allocations: 0 / 0.5226 GB, free: 6.293 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.5034, allocations: 4 kB / 0.5226 GB, free: 6.289 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.5034, allocations: 4 kB / 0.5226 GB, free: 6.285 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001296/0.5035, allocations: 232.6 kB / 0.5228 GB, free: 6.039 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.5036, allocations: 0 / 0.5228 GB, free: 6.039 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.005e-05/0.5036, allocations: 11.98 kB / 0.5228 GB, free: 6.027 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.5036, allocations: 0 / 0.5228 GB, free: 6.027 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.949e-06/0.5036, allocations: 7.938 kB / 0.5228 GB, free: 6.02 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.5036, allocations: 0 / 0.5228 GB, free: 6.02 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.5036, allocations: 0 / 0.5228 GB, free: 6.02 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001936/0.5038, allocations: 172.4 kB / 0.523 GB, free: 5.852 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.696e-05/0.5039, allocations: 112 kB / 0.5231 GB, free: 5.73 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.705e-05/0.5039, allocations: 3.75 kB / 0.5231 GB, free: 5.73 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.958e-05/0.504, allocations: 4 kB / 0.5231 GB, free: 5.727 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.486e-05/0.504, allocations: 7.984 kB / 0.5231 GB, free: 5.719 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.636e-06/0.5041, allocations: 8 kB / 0.5231 GB, free: 5.711 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001394/0.5042, allocations: 196.1 kB / 0.5233 GB, free: 5.551 MB / 330.7 MB Notification: Performance of sort global known variables: time 2e-07/0.5042, allocations: 3.938 kB / 0.5233 GB, free: 5.547 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002348/0.5044, allocations: 35.28 kB / 0.5234 GB, free: 5.516 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample.y,sample.y,subSample.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 (10): * Single equations (assignments): 8 * 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.0007294/0.5052, allocations: 429.9 kB / 0.5238 GB, free: 5.105 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001825/0.5054, allocations: 69.22 kB / 0.5238 GB, free: 5.055 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.5054, allocations: 4.062 kB / 0.5238 GB, free: 5.051 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.302e-05/0.5055, allocations: 30.98 kB / 0.5239 GB, free: 5.027 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003418/0.5058, allocations: 67.14 kB / 0.5239 GB, free: 4.973 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004261/0.5062, allocations: 377.8 kB / 0.5243 GB, free: 4.594 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001226/0.5064, allocations: 0.7356 MB / 0.525 GB, free: 3.836 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.988e-05/0.5064, allocations: 15.44 kB / 0.525 GB, free: 3.82 MB / 330.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5064, allocations: 0 / 0.525 GB, free: 3.82 MB / 330.7 MB Notification: Performance of Templates: time 0.003516/0.51, allocations: 2.603 MB / 0.5276 GB, free: 1.234 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches