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.002049/0.002049, allocations: 185.4 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.923/1.923, allocations: 205.4 MB / 222.6 MB, free: 9.125 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.001157/0.001157, allocations: 92.55 kB / 270.9 MB, free: 8.371 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.1014/0.1014, allocations: 12.59 MB / 331.8 MB, free: 11.41 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007449/0.000745, allocations: 16 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08602/0.08681, allocations: 50.36 MB / 442.3 MB, free: 16.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4235/0.5104, allocations: 81.88 MB / 0.5119 GB, free: 12.09 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002805/0.5107, allocations: 85.73 kB / 0.512 GB, free: 12.08 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02651/0.5373, allocations: 6.468 MB / 0.5183 GB, free: 9.25 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.5373, allocations: 0 / 0.5183 GB, free: 9.25 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.999e-05/0.5374, allocations: 4 kB / 0.5183 GB, free: 9.246 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.0007779/0.5382, allocations: 0.532 MB / 0.5189 GB, free: 8.68 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.5382, allocations: 8.031 kB / 0.5189 GB, free: 8.672 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.344e-05/0.5383, allocations: 23.72 kB / 0.5189 GB, free: 8.648 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005558/0.5389, allocations: 288.2 kB / 0.5192 GB, free: 8.348 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.912e-05/0.5389, allocations: 15.45 kB / 0.5192 GB, free: 8.336 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.596e-05/0.539, allocations: 4 kB / 0.5192 GB, free: 8.332 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004138/0.5394, allocations: 162 kB / 0.5193 GB, free: 8.176 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.5394, allocations: 0 / 0.5193 GB, free: 8.176 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.065e-05/0.5394, allocations: 11.56 kB / 0.5193 GB, free: 8.168 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.298e-06/0.5395, allocations: 4 kB / 0.5193 GB, free: 8.164 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001646/0.5396, allocations: 40.22 kB / 0.5194 GB, free: 8.133 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006588/0.5403, allocations: 395.9 kB / 0.5198 GB, free: 7.742 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003208/0.5406, allocations: 124.1 kB / 0.5199 GB, free: 7.613 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.463e-05/0.5407, allocations: 3.984 kB / 0.5199 GB, free: 7.609 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002071/0.5409, allocations: 82.98 kB / 0.52 GB, free: 7.527 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.525e-06/0.5409, allocations: 0 / 0.52 GB, free: 7.527 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0005312/0.5415, allocations: 156.5 kB / 0.5201 GB, free: 7.398 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.413e-05/0.5415, allocations: 162.2 kB / 0.5203 GB, free: 7.203 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004213/0.542, allocations: 299.9 kB / 0.5206 GB, free: 6.953 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.414e-05/0.542, allocations: 29.39 kB / 0.5206 GB, free: 6.922 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.467e-05/0.5421, allocations: 184.6 kB / 0.5208 GB, free: 6.762 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.242e-05/0.5421, allocations: 31.28 kB / 0.5208 GB, free: 6.738 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.816e-06/0.5422, allocations: 0 / 0.5208 GB, free: 6.738 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.728e-05/0.5422, allocations: 322.5 kB / 0.5211 GB, free: 6.418 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001037/0.5423, allocations: 23.17 kB / 0.5211 GB, free: 6.402 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001571/0.5425, allocations: 94.88 kB / 0.5212 GB, free: 6.301 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001215/0.5426, allocations: 35.48 kB / 0.5212 GB, free: 6.277 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.5427, allocations: 0 / 0.5212 GB, free: 6.277 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003062/0.543, allocations: 108.3 kB / 0.5213 GB, free: 6.188 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.543, allocations: 8 kB / 0.5214 GB, free: 6.18 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.543, allocations: 4.125 kB / 0.5214 GB, free: 6.176 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.543, allocations: 0 / 0.5214 GB, free: 6.176 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001755/0.5432, allocations: 19.98 kB / 0.5214 GB, free: 6.156 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.5433, allocations: 4 kB / 0.5214 GB, free: 6.152 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001975/0.5435, allocations: 11.89 kB / 0.5214 GB, free: 6.141 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.62e-05/0.5435, allocations: 7.938 kB / 0.5214 GB, free: 6.137 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,superSample.y,superSample.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 0.00017/0.5437, allocations: 156.4 kB / 0.5215 GB, free: 5.984 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.5438, allocations: 61.44 kB / 0.5216 GB, free: 5.922 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003641/0.5442, allocations: 135.9 kB / 0.5217 GB, free: 5.812 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.5442, allocations: 0 / 0.5217 GB, free: 5.812 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.5442, allocations: 0 / 0.5217 GB, free: 5.812 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.5442, allocations: 4 kB / 0.5217 GB, free: 5.809 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002347/0.5445, allocations: 254.2 kB / 0.522 GB, free: 5.543 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.5445, allocations: 0 / 0.522 GB, free: 5.543 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001229/0.5446, allocations: 19.92 kB / 0.522 GB, free: 5.527 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.5446, allocations: 0 / 0.522 GB, free: 5.527 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.659e-05/0.5447, allocations: 8 kB / 0.522 GB, free: 5.52 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.5447, allocations: 4 kB / 0.522 GB, free: 5.516 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.5447, allocations: 3.938 kB / 0.522 GB, free: 5.512 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003689/0.5451, allocations: 194.7 kB / 0.5222 GB, free: 5.312 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001399/0.5452, allocations: 127.7 kB / 0.5223 GB, free: 5.176 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.079e-05/0.5453, allocations: 11.75 kB / 0.5223 GB, free: 5.168 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001173/0.5454, allocations: 0 / 0.5223 GB, free: 5.168 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.584e-05/0.5455, allocations: 15.55 kB / 0.5223 GB, free: 5.156 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.592e-05/0.5455, allocations: 0 / 0.5223 GB, free: 5.156 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003219/0.5458, allocations: 242.5 kB / 0.5226 GB, free: 4.961 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.5458, allocations: 0 / 0.5226 GB, free: 4.961 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004016/0.5462, allocations: 50.84 kB / 0.5226 GB, free: 4.918 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,superSample.y,sample.y,superSample.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.001138/0.5474, allocations: 445.9 kB / 0.5231 GB, free: 4.488 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000397/0.5478, allocations: 94.61 kB / 0.5231 GB, free: 4.418 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.5478, allocations: 0 / 0.5231 GB, free: 4.418 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001241/0.548, allocations: 35.23 kB / 0.5232 GB, free: 4.391 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004897/0.5485, allocations: 62.95 kB / 0.5232 GB, free: 4.344 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008451/0.5493, allocations: 440.9 kB / 0.5237 GB, free: 3.91 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002123/0.5496, allocations: 0.7465 MB / 0.5244 GB, free: 3.145 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.365e-05/0.5497, allocations: 23.42 kB / 0.5244 GB, free: 3.121 MB / 330.7 MB Notification: Performance of SimCode: time 1.963e-06/0.5497, allocations: 0 / 0.5244 GB, free: 3.121 MB / 330.7 MB Notification: Performance of Templates: time 0.006392/0.5561, allocations: 2.926 MB / 0.5273 GB, free: 220 kB / 330.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