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.002166/0.002166, allocations: 179.4 kB / 8.407 MB, free: 0.6719 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.117/2.117, allocations: 205.3 MB / 214.1 MB, free: 1.668 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.001098/0.001098, allocations: 86.3 kB / 262.2 MB, free: 1.613 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.1026/0.1026, allocations: 12.61 MB / 322.7 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.84e-05/1.835e-05, allocations: 4 kB / 378.9 MB, free: 6.891 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3145/0.3145, allocations: 50.37 MB / 429.3 MB, free: 18.42 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1484/0.463, allocations: 81.12 MB / 0.4984 GB, free: 1.184 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003369/0.4634, allocations: 83.94 kB / 0.4985 GB, free: 1.102 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03014/0.4935, allocations: 6.415 MB / 0.5048 GB, free: 10.68 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.093e-06/0.4936, allocations: 0 / 0.5048 GB, free: 10.68 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.648e-05/0.4936, allocations: 7.984 kB / 0.5048 GB, free: 10.68 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.0008316/0.4945, allocations: 0.4917 MB / 0.5053 GB, free: 10.13 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/0.4946, allocations: 8.031 kB / 0.5053 GB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.525e-05/0.4947, allocations: 23.72 kB / 0.5053 GB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006591/0.4953, allocations: 282.5 kB / 0.5056 GB, free: 9.785 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.519e-05/0.4954, allocations: 3.953 kB / 0.5056 GB, free: 9.781 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.749e-05/0.4954, allocations: 8 kB / 0.5056 GB, free: 9.773 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001666/0.4956, allocations: 35.98 kB / 0.5056 GB, free: 9.738 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003877/0.496, allocations: 147.5 kB / 0.5058 GB, free: 9.566 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.496, allocations: 0 / 0.5058 GB, free: 9.566 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.937e-05/0.4961, allocations: 0 / 0.5058 GB, free: 9.566 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.4961, allocations: 0 / 0.5058 GB, free: 9.566 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007634/0.4969, allocations: 378.9 kB / 0.5061 GB, free: 9.152 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002297/0.4971, allocations: 107.9 kB / 0.5062 GB, free: 9.02 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001007/0.4972, allocations: 46.69 kB / 0.5063 GB, free: 8.965 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.116e-05/0.4973, allocations: 11.94 kB / 0.5063 GB, free: 8.953 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001902/0.4975, allocations: 71.33 kB / 0.5063 GB, free: 8.871 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 2.515e-06/0.4975, allocations: 0 / 0.5063 GB, free: 8.871 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004097/0.4979, allocations: 129.3 kB / 0.5065 GB, free: 8.738 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/0.498, allocations: 158.2 kB / 0.5066 GB, free: 8.547 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005165/0.4986, allocations: 286.3 kB / 0.5069 GB, free: 8.266 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.179e-05/0.4986, allocations: 29.7 kB / 0.5069 GB, free: 8.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001255/0.4988, allocations: 174.6 kB / 0.5071 GB, free: 8.059 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.414e-05/0.4988, allocations: 19.69 kB / 0.5071 GB, free: 8.039 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.085e-06/0.4988, allocations: 0 / 0.5071 GB, free: 8.039 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.499, allocations: 330.8 kB / 0.5074 GB, free: 7.707 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.302e-05/0.4991, allocations: 20 kB / 0.5074 GB, free: 7.688 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001516/0.4992, allocations: 86.78 kB / 0.5075 GB, free: 7.578 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.956e-05/0.4994, allocations: 28 kB / 0.5076 GB, free: 7.551 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.4994, allocations: 0 / 0.5076 GB, free: 7.551 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002719/0.4997, allocations: 97.52 kB / 0.5076 GB, free: 7.449 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.447e-05/0.4997, allocations: 7.984 kB / 0.5077 GB, free: 7.441 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.4997, allocations: 0 / 0.5077 GB, free: 7.441 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.199e-05/0.4997, allocations: 4 kB / 0.5077 GB, free: 7.438 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002018/0.5, allocations: 23.94 kB / 0.5077 GB, free: 7.414 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/0.5, allocations: 3.984 kB / 0.5077 GB, free: 7.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000162/0.5002, allocations: 8.125 kB / 0.5077 GB, free: 7.402 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.705e-05/0.5002, allocations: 4 kB / 0.5077 GB, free: 7.398 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.0001344/0.5004, allocations: 108.9 kB / 0.5078 GB, free: 7.285 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001525/0.5005, allocations: 69.34 kB / 0.5079 GB, free: 7.211 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003655/0.5009, allocations: 111.5 kB / 0.508 GB, free: 7.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.5009, allocations: 4 kB / 0.508 GB, free: 7.086 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.5009, allocations: 0 / 0.508 GB, free: 7.086 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.5009, allocations: 4.062 kB / 0.508 GB, free: 7.082 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003077/0.5013, allocations: 222.2 kB / 0.5082 GB, free: 6.828 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.5013, allocations: 0 / 0.5082 GB, free: 6.828 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001447/0.5014, allocations: 31.81 kB / 0.5082 GB, free: 6.797 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.221e-06/0.5015, allocations: 0 / 0.5082 GB, free: 6.797 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.708e-05/0.5015, allocations: 4 kB / 0.5082 GB, free: 6.793 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.217e-06/0.5015, allocations: 0 / 0.5082 GB, free: 6.793 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.237e-06/0.5015, allocations: 0 / 0.5082 GB, free: 6.793 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003743/0.5019, allocations: 193.9 kB / 0.5084 GB, free: 6.566 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001976/0.5021, allocations: 124.7 kB / 0.5085 GB, free: 6.426 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.795e-05/0.5022, allocations: 128 / 0.5085 GB, free: 6.426 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001299/0.5023, allocations: 11.98 kB / 0.5085 GB, free: 6.414 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.663e-05/0.5024, allocations: 11.98 kB / 0.5086 GB, free: 6.402 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.869e-05/0.5024, allocations: 4 kB / 0.5086 GB, free: 6.398 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003855/0.5028, allocations: 230 kB / 0.5088 GB, free: 6.172 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.5028, allocations: 0 / 0.5088 GB, free: 6.172 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004596/0.5033, allocations: 47.98 kB / 0.5088 GB, free: 6.125 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.001146/0.5045, allocations: 357.8 kB / 0.5092 GB, free: 5.777 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003547/0.5048, allocations: 83.89 kB / 0.5092 GB, free: 5.695 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.5049, allocations: 0 / 0.5092 GB, free: 5.695 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.194e-05/0.505, allocations: 24 kB / 0.5093 GB, free: 5.672 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005637/0.5055, allocations: 67.89 kB / 0.5093 GB, free: 5.609 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008206/0.5064, allocations: 313.1 kB / 0.5096 GB, free: 5.27 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003968/0.5068, allocations: 0.748 MB / 0.5104 GB, free: 4.496 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.958e-05/0.5069, allocations: 19.44 kB / 0.5104 GB, free: 4.48 MB / 362.7 MB Notification: Performance of SimCode: time 1.252e-06/0.5069, allocations: 0 / 0.5104 GB, free: 4.48 MB / 362.7 MB Notification: Performance of Templates: time 0.00824/0.5152, allocations: 2.922 MB / 0.5132 GB, free: 1.559 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