Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.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.SuperSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|superSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|superSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001561/0.001561, allocations: 186.1 kB / 13.7 MB, free: 1.625 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.999/1.999, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001066/0.001066, allocations: 94.56 kB / 267.6 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09788/0.09788, allocations: 12.61 MB / 328.2 MB, free: 11.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.749e-05/3.766e-05, allocations: 7.984 kB / 386 MB, free: 1.309 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/0.3037, allocations: 50.36 MB / 436.3 MB, free: 14.15 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1473/0.451, allocations: 81.79 MB / 0.506 GB, free: 12.25 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003388/0.4514, allocations: 83.95 kB / 0.5061 GB, free: 12.17 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02946/0.4809, allocations: 6.456 MB / 0.5124 GB, free: 5.703 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.4809, allocations: 0 / 0.5124 GB, free: 5.703 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.177e-05/0.481, allocations: 8 kB / 0.5124 GB, free: 5.695 MB / 362.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.0007918/0.4818, allocations: 495.5 kB / 0.5129 GB, free: 5.16 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.4818, allocations: 12.02 kB / 0.5129 GB, free: 5.148 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.728e-05/0.4819, allocations: 27.72 kB / 0.5129 GB, free: 5.121 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006085/0.4826, allocations: 286.5 kB / 0.5132 GB, free: 4.801 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.635e-05/0.4826, allocations: 7.953 kB / 0.5132 GB, free: 4.793 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.254e-05/0.4826, allocations: 8 kB / 0.5132 GB, free: 4.785 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003986/0.483, allocations: 151.6 kB / 0.5133 GB, free: 4.609 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.4831, allocations: 4 kB / 0.5133 GB, free: 4.605 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.828e-05/0.4831, allocations: 0 / 0.5133 GB, free: 4.605 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.4831, allocations: 0 / 0.5133 GB, free: 4.605 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001383/0.4833, allocations: 39.92 kB / 0.5134 GB, free: 4.566 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007515/0.484, allocations: 406.3 kB / 0.5138 GB, free: 4.113 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000258/0.4843, allocations: 115.9 kB / 0.5139 GB, free: 3.973 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001044/0.4844, allocations: 42.7 kB / 0.5139 GB, free: 3.922 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.56e-05/0.4845, allocations: 8.062 kB / 0.5139 GB, free: 3.914 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001989/0.4847, allocations: 75.38 kB / 0.514 GB, free: 3.828 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 4.588e-06/0.4847, allocations: 7.938 kB / 0.514 GB, free: 3.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004267/0.4852, allocations: 125.3 kB / 0.5141 GB, free: 3.691 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.693e-05/0.4853, allocations: 158.2 kB / 0.5143 GB, free: 3.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005251/0.4858, allocations: 299.1 kB / 0.5145 GB, free: 3.199 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.05e-05/0.4859, allocations: 25.7 kB / 0.5146 GB, free: 3.168 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.486, allocations: 178.6 kB / 0.5147 GB, free: 2.992 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.337e-05/0.486, allocations: 23.67 kB / 0.5148 GB, free: 2.969 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.078e-05/0.486, allocations: 8.062 kB / 0.5148 GB, free: 2.961 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.4862, allocations: 314.8 kB / 0.5151 GB, free: 2.645 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.859e-05/0.4863, allocations: 27.98 kB / 0.5151 GB, free: 2.617 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001529/0.4864, allocations: 86.86 kB / 0.5152 GB, free: 2.508 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000103/0.4865, allocations: 39.03 kB / 0.5152 GB, free: 2.473 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.4866, allocations: 0 / 0.5152 GB, free: 2.473 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002818/0.4869, allocations: 105.5 kB / 0.5153 GB, free: 2.363 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/0.4869, allocations: 7.938 kB / 0.5153 GB, free: 2.355 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.4869, allocations: 4 kB / 0.5153 GB, free: 2.352 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.4869, allocations: 0 / 0.5153 GB, free: 2.352 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002007/0.4871, allocations: 24.11 kB / 0.5154 GB, free: 2.328 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.907e-06/0.4872, allocations: 0 / 0.5154 GB, free: 2.328 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001532/0.4873, allocations: 8.125 kB / 0.5154 GB, free: 2.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.81e-05/0.4874, allocations: 11.98 kB / 0.5154 GB, free: 2.309 MB / 362.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,superSample.y,superSample.u,sample.y) * Number of discrete 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 0.0001191/0.4875, allocations: 124.7 kB / 0.5155 GB, free: 2.18 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001257/0.4876, allocations: 61.42 kB / 0.5156 GB, free: 2.113 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003612/0.488, allocations: 123.5 kB / 0.5157 GB, free: 1.988 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.488, allocations: 4 kB / 0.5157 GB, free: 1.984 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.488, allocations: 0 / 0.5157 GB, free: 1.984 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.4881, allocations: 4 kB / 0.5157 GB, free: 1.98 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003231/0.4884, allocations: 249.5 kB / 0.5159 GB, free: 1.688 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.109e-06/0.4884, allocations: 7.922 kB / 0.5159 GB, free: 1.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001293/0.4885, allocations: 12 kB / 0.5159 GB, free: 1.668 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.4886, allocations: 0 / 0.5159 GB, free: 1.668 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.4886, allocations: 4 kB / 0.5159 GB, free: 1.664 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.4886, allocations: 0 / 0.5159 GB, free: 1.664 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/0.4886, allocations: 3.984 kB / 0.5159 GB, free: 1.66 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003553/0.489, allocations: 197.9 kB / 0.5161 GB, free: 1.43 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001834/0.4892, allocations: 124.7 kB / 0.5163 GB, free: 1.289 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.21e-05/0.4893, allocations: 8.078 kB / 0.5163 GB, free: 1.281 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001223/0.4894, allocations: 7.938 kB / 0.5163 GB, free: 1.273 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.61e-05/0.4895, allocations: 15.98 kB / 0.5163 GB, free: 1.258 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.877e-05/0.4895, allocations: 7.938 kB / 0.5163 GB, free: 1.25 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003919/0.4899, allocations: 239.1 kB / 0.5165 GB, free: 1.016 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.4899, allocations: 0 / 0.5165 GB, free: 1.016 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004147/0.4904, allocations: 51.94 kB / 0.5166 GB, free: 0.9648 MB / 362.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,superSample.y,sample.y,superSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * 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.001161/0.4915, allocations: 381 kB / 0.5169 GB, free: 0.582 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000348/0.4919, allocations: 99.83 kB / 0.517 GB, free: 496 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.4919, allocations: 0 / 0.517 GB, free: 496 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.879e-05/0.492, allocations: 24 kB / 0.517 GB, free: 472 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000532/0.4926, allocations: 60.58 kB / 0.5171 GB, free: 412 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007846/0.4934, allocations: 310.1 kB / 0.5174 GB, free: 68 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2644/0.7578, allocations: 0.7446 MB / 0.5181 GB, free: 85.35 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001362/0.758, allocations: 23.69 kB / 0.5182 GB, free: 85.34 MB / 362.7 MB Notification: Performance of SimCode: time 1.503e-06/0.7581, allocations: 3.938 kB / 0.5182 GB, free: 85.34 MB / 362.7 MB Notification: Performance of Templates: time 0.008892/0.767, allocations: 2.92 MB / 0.521 GB, free: 85.21 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches