Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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-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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001527/0.001527, allocations: 185.1 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.974/1.974, allocations: 205.4 MB / 222.6 MB, free: 9.133 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.00114/0.001139, allocations: 89.67 kB / 270.9 MB, free: 8.367 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.09995/0.09995, allocations: 12.59 MB / 331.8 MB, free: 11.4 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005358/0.0005358, allocations: 19.98 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08535/0.08591, allocations: 50.37 MB / 442.3 MB, free: 16.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4242/0.5102, allocations: 81.87 MB / 0.5119 GB, free: 12.19 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002779/0.5105, allocations: 84.05 kB / 0.512 GB, free: 12.18 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02588/0.5364, allocations: 6.469 MB / 0.5183 GB, free: 9.23 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.514e-06/0.5365, allocations: 0 / 0.5183 GB, free: 9.23 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3e-05/0.5365, allocations: 4 kB / 0.5183 GB, free: 9.227 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.0007858/0.5373, allocations: 0.5348 MB / 0.5189 GB, free: 8.656 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.5374, allocations: 8.031 kB / 0.5189 GB, free: 8.648 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.581e-05/0.5374, allocations: 23.72 kB / 0.5189 GB, free: 8.625 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000508/0.538, allocations: 290.8 kB / 0.5192 GB, free: 8.32 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.57e-05/0.538, allocations: 11.02 kB / 0.5192 GB, free: 8.312 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.766e-05/0.538, allocations: 4 kB / 0.5192 GB, free: 8.309 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003875/0.5384, allocations: 153.2 kB / 0.5193 GB, free: 8.16 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.5385, allocations: 15.92 kB / 0.5193 GB, free: 8.145 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.5385, allocations: 0 / 0.5193 GB, free: 8.145 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.5385, allocations: 3.938 kB / 0.5193 GB, free: 8.141 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001637/0.5387, allocations: 40.22 kB / 0.5194 GB, free: 8.113 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006383/0.5393, allocations: 402.3 kB / 0.5198 GB, free: 7.715 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003171/0.5397, allocations: 123.6 kB / 0.5199 GB, free: 7.586 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.785e-05/0.5397, allocations: 0 / 0.5199 GB, free: 7.586 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002075/0.5399, allocations: 87.53 kB / 0.52 GB, free: 7.5 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.785e-06/0.5399, allocations: 0 / 0.52 GB, free: 7.5 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.000536/0.5405, allocations: 156.8 kB / 0.5201 GB, free: 7.371 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.944e-05/0.5406, allocations: 154.2 kB / 0.5203 GB, free: 7.184 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004272/0.541, allocations: 300.2 kB / 0.5205 GB, free: 6.934 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/0.541, allocations: 32.33 kB / 0.5206 GB, free: 6.898 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.673e-05/0.5411, allocations: 187.8 kB / 0.5208 GB, free: 6.734 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.259e-05/0.5412, allocations: 26.78 kB / 0.5208 GB, free: 6.715 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.438e-06/0.5412, allocations: 2.562 kB / 0.5208 GB, free: 6.715 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.918e-05/0.5413, allocations: 318.7 kB / 0.5211 GB, free: 6.398 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001032/0.5414, allocations: 23.17 kB / 0.5211 GB, free: 6.383 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000159/0.5415, allocations: 97.77 kB / 0.5212 GB, free: 6.273 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001229/0.5417, allocations: 34.36 kB / 0.5212 GB, free: 6.254 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.5417, allocations: 4 kB / 0.5212 GB, free: 6.25 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003064/0.542, allocations: 107 kB / 0.5213 GB, free: 6.16 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.542, allocations: 12.11 kB / 0.5214 GB, free: 6.148 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.5421, allocations: 0 / 0.5214 GB, free: 6.148 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.5421, allocations: 4 kB / 0.5214 GB, free: 6.145 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001663/0.5423, allocations: 16 kB / 0.5214 GB, free: 6.129 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.505e-06/0.5423, allocations: 3.984 kB / 0.5214 GB, free: 6.125 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001355/0.5424, allocations: 10.47 kB / 0.5214 GB, free: 6.117 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.404e-05/0.5425, allocations: 4 kB / 0.5214 GB, free: 6.113 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 0.0001616/0.5426, allocations: 158.1 kB / 0.5215 GB, free: 5.961 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001232/0.5428, allocations: 72.19 kB / 0.5216 GB, free: 5.891 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00037/0.5431, allocations: 120.4 kB / 0.5217 GB, free: 5.793 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.5432, allocations: 0 / 0.5217 GB, free: 5.793 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.5432, allocations: 4 kB / 0.5217 GB, free: 5.789 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.5432, allocations: 0 / 0.5217 GB, free: 5.789 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002351/0.5434, allocations: 256.2 kB / 0.522 GB, free: 5.523 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.5434, allocations: 7.984 kB / 0.522 GB, free: 5.516 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001134/0.5436, allocations: 12 kB / 0.522 GB, free: 5.504 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.5436, allocations: 4 kB / 0.522 GB, free: 5.5 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.558e-05/0.5436, allocations: 7.688 kB / 0.522 GB, free: 5.496 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.5436, allocations: 3.938 kB / 0.522 GB, free: 5.492 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.5436, allocations: 7.984 kB / 0.522 GB, free: 5.484 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003765/0.544, allocations: 195.5 kB / 0.5222 GB, free: 5.281 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001328/0.5442, allocations: 123.8 kB / 0.5223 GB, free: 5.152 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.882e-05/0.5442, allocations: 4 kB / 0.5223 GB, free: 5.148 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001142/0.5444, allocations: 7.688 kB / 0.5223 GB, free: 5.145 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.061e-05/0.5444, allocations: 7.984 kB / 0.5223 GB, free: 5.137 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.56e-05/0.5445, allocations: 4 kB / 0.5223 GB, free: 5.133 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003137/0.5448, allocations: 242 kB / 0.5226 GB, free: 4.941 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5448, allocations: 0 / 0.5226 GB, free: 4.941 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003995/0.5452, allocations: 55.64 kB / 0.5226 GB, free: 4.891 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.001117/0.5463, allocations: 449.7 kB / 0.5231 GB, free: 4.465 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003747/0.5467, allocations: 89.69 kB / 0.5231 GB, free: 4.395 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.5468, allocations: 3.875 kB / 0.5231 GB, free: 4.395 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001262/0.5469, allocations: 31.73 kB / 0.5232 GB, free: 4.371 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004809/0.5474, allocations: 59.5 kB / 0.5232 GB, free: 4.324 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007973/0.5482, allocations: 438.3 kB / 0.5236 GB, free: 3.895 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002112/0.5484, allocations: 0.7433 MB / 0.5244 GB, free: 3.129 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.27e-05/0.5485, allocations: 27.36 kB / 0.5244 GB, free: 3.105 MB / 330.7 MB Notification: Performance of SimCode: time 1.643e-06/0.5485, allocations: 4 kB / 0.5244 GB, free: 3.102 MB / 330.7 MB Notification: Performance of Templates: time 0.006337/0.5549, allocations: 2.928 MB / 0.5273 GB, free: 196 kB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches