Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.001094/0.001094, allocations: 177.6 kB / 8.047 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.398/1.398, allocations: 205.3 MB / 213.8 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001011/0.001012, allocations: 86.62 kB / 261.8 MB, free: 1.684 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.07189/0.07189, allocations: 12.6 MB / 322.3 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.884e-05/1.886e-05, allocations: 4 kB / 378.9 MB, free: 6.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2504/0.2505, allocations: 50.36 MB / 429.3 MB, free: 18.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1038/0.3543, allocations: 81.13 MB / 0.4985 GB, free: 1.094 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003355/0.3547, allocations: 79.95 kB / 0.4985 GB, free: 1.016 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01788/0.3726, allocations: 6.408 MB / 0.5048 GB, free: 10.61 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3726, allocations: 3.938 kB / 0.5048 GB, free: 10.6 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.286e-05/0.3727, allocations: 4 kB / 0.5048 GB, free: 10.6 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.0006286/0.3733, allocations: 0.4917 MB / 0.5053 GB, free: 10.05 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.3734, allocations: 8.031 kB / 0.5053 GB, free: 10.05 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.252e-05/0.3734, allocations: 27.7 kB / 0.5053 GB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004447/0.3739, allocations: 282.5 kB / 0.5056 GB, free: 9.703 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.245e-05/0.3739, allocations: 7.953 kB / 0.5056 GB, free: 9.695 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.138e-05/0.374, allocations: 4 kB / 0.5056 GB, free: 9.691 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001195/0.3741, allocations: 35.98 kB / 0.5056 GB, free: 9.656 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002882/0.3744, allocations: 151.5 kB / 0.5058 GB, free: 9.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.3744, allocations: 0 / 0.5058 GB, free: 9.48 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.541e-05/0.3744, allocations: 0 / 0.5058 GB, free: 9.48 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.3744, allocations: 4 kB / 0.5058 GB, free: 9.477 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005647/0.375, allocations: 374.9 kB / 0.5061 GB, free: 9.066 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002025/0.3752, allocations: 103.9 kB / 0.5062 GB, free: 8.938 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.34e-05/0.3753, allocations: 50.69 kB / 0.5063 GB, free: 8.879 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.338e-05/0.3753, allocations: 0 / 0.5063 GB, free: 8.879 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001448/0.3755, allocations: 79.31 kB / 0.5064 GB, free: 8.789 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.322e-06/0.3755, allocations: 0 / 0.5064 GB, free: 8.789 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002641/0.3758, allocations: 129.3 kB / 0.5065 GB, free: 8.656 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.579e-05/0.3759, allocations: 154.2 kB / 0.5066 GB, free: 8.469 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003035/0.3762, allocations: 286.3 kB / 0.5069 GB, free: 8.188 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.581e-05/0.3762, allocations: 25.7 kB / 0.5069 GB, free: 8.156 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.561e-05/0.3763, allocations: 128.1 kB / 0.5071 GB, free: 8.027 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.121e-05/0.3763, allocations: 19.69 kB / 0.5071 GB, free: 8.008 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.6e-06/0.3764, allocations: 0 / 0.5071 GB, free: 8.008 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.3765, allocations: 346.8 kB / 0.5074 GB, free: 7.66 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.733e-05/0.3765, allocations: 16 kB / 0.5074 GB, free: 7.645 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.626e-05/0.3766, allocations: 86.84 kB / 0.5075 GB, free: 7.535 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.64e-05/0.3767, allocations: 35.92 kB / 0.5075 GB, free: 7.5 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3767, allocations: 0 / 0.5075 GB, free: 7.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001671/0.3769, allocations: 109.3 kB / 0.5076 GB, free: 7.387 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.3769, allocations: 8 kB / 0.5077 GB, free: 7.379 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.3769, allocations: 0 / 0.5077 GB, free: 7.379 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.3769, allocations: 4 kB / 0.5077 GB, free: 7.375 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000108/0.377, allocations: 24.05 kB / 0.5077 GB, free: 7.352 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.144e-06/0.377, allocations: 4 kB / 0.5077 GB, free: 7.348 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.314e-05/0.3771, allocations: 8.125 kB / 0.5077 GB, free: 7.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.233e-05/0.3771, allocations: 8 kB / 0.5077 GB, free: 7.332 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,subSample.y,subSample.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 9.627e-05/0.3773, allocations: 114 kB / 0.5078 GB, free: 7.215 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.295e-05/0.3773, allocations: 69.34 kB / 0.5079 GB, free: 7.141 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002071/0.3776, allocations: 111.6 kB / 0.508 GB, free: 7.02 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.3776, allocations: 0 / 0.508 GB, free: 7.02 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.3776, allocations: 4 kB / 0.508 GB, free: 7.016 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.3776, allocations: 8.047 kB / 0.508 GB, free: 7.008 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001917/0.3778, allocations: 218.1 kB / 0.5082 GB, free: 6.758 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.688e-06/0.3778, allocations: 0 / 0.5082 GB, free: 6.758 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.742e-05/0.3779, allocations: 19.83 kB / 0.5082 GB, free: 6.738 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.3779, allocations: 4 kB / 0.5082 GB, free: 6.734 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.177e-05/0.3779, allocations: 4 kB / 0.5082 GB, free: 6.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.3779, allocations: 7.984 kB / 0.5082 GB, free: 6.723 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.3779, allocations: 0 / 0.5082 GB, free: 6.723 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002095/0.3781, allocations: 185.9 kB / 0.5084 GB, free: 6.504 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001139/0.3783, allocations: 124.7 kB / 0.5085 GB, free: 6.363 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.521e-05/0.3783, allocations: 3.984 kB / 0.5085 GB, free: 6.359 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.765e-05/0.3784, allocations: 4 kB / 0.5085 GB, free: 6.355 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.807e-05/0.3784, allocations: 11.98 kB / 0.5085 GB, free: 6.344 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.1e-05/0.3784, allocations: 4 kB / 0.5086 GB, free: 6.34 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002075/0.3787, allocations: 230 kB / 0.5088 GB, free: 6.113 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3787, allocations: 0 / 0.5088 GB, free: 6.113 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002732/0.3789, allocations: 47.98 kB / 0.5088 GB, free: 6.066 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,subSample.y,sample.y,subSample.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.0008107/0.3798, allocations: 363.4 kB / 0.5092 GB, free: 5.711 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001908/0.38, allocations: 83.91 kB / 0.5092 GB, free: 5.629 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.38, allocations: 0 / 0.5092 GB, free: 5.629 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.491e-05/0.38, allocations: 24 kB / 0.5093 GB, free: 5.605 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003215/0.3804, allocations: 75.88 kB / 0.5093 GB, free: 5.535 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004423/0.3808, allocations: 275.4 kB / 0.5096 GB, free: 5.238 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003134/0.3811, allocations: 0.7518 MB / 0.5103 GB, free: 4.461 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.224e-05/0.3812, allocations: 25.33 kB / 0.5104 GB, free: 4.438 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.832e-05/0.3813, allocations: 19.44 kB / 0.5104 GB, free: 4.422 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3813, allocations: 0 / 0.5104 GB, free: 4.422 MB / 362.7 MB Notification: Performance of Templates: time 0.0054/0.3867, allocations: 2.581 MB / 0.5129 GB, free: 1.844 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches