Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.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.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001465/0.001465, allocations: 185.2 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.933/1.933, allocations: 205.4 MB / 222.6 MB, free: 9.129 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.001116/0.001115, allocations: 89.55 kB / 270.9 MB, free: 8.379 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.1018/0.1018, allocations: 12.59 MB / 331.8 MB, free: 11.41 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005627/0.0005626, allocations: 16 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09421/0.0948, allocations: 50.37 MB / 442.3 MB, free: 16.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4311/0.526, allocations: 82.37 MB / 0.5124 GB, free: 12.1 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002753/0.5263, allocations: 83.8 kB / 0.5125 GB, free: 12.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03599/0.5623, allocations: 8.678 MB / 0.521 GB, free: 7.25 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.5624, allocations: 0 / 0.521 GB, free: 7.25 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.411e-05/0.5624, allocations: 4 kB / 0.521 GB, free: 7.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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0009555/0.5634, allocations: 0.5685 MB / 0.5215 GB, free: 6.648 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.5634, allocations: 15.97 kB / 0.5215 GB, free: 6.633 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.478e-05/0.5635, allocations: 27.62 kB / 0.5216 GB, free: 6.605 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006033/0.5641, allocations: 312 kB / 0.5219 GB, free: 6.281 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.209e-05/0.5642, allocations: 18.7 kB / 0.5219 GB, free: 6.27 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.695e-05/0.5642, allocations: 15.19 kB / 0.5219 GB, free: 6.258 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007389/0.565, allocations: 318 kB / 0.5222 GB, free: 5.984 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.565, allocations: 3.938 kB / 0.5222 GB, free: 5.98 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.597e-05/0.5651, allocations: 11.56 kB / 0.5222 GB, free: 5.973 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.909e-06/0.5651, allocations: 0 / 0.5222 GB, free: 5.973 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000256/0.5653, allocations: 73.62 kB / 0.5223 GB, free: 5.922 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006631/0.566, allocations: 433.9 kB / 0.5227 GB, free: 5.5 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004942/0.5665, allocations: 200.5 kB / 0.5229 GB, free: 5.32 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.303e-05/0.5666, allocations: 7.75 kB / 0.5229 GB, free: 5.316 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002022/0.5668, allocations: 84.19 kB / 0.523 GB, free: 5.234 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 2.324e-06/0.5668, allocations: 3.938 kB / 0.523 GB, free: 5.23 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007494/0.5676, allocations: 248.5 kB / 0.5232 GB, free: 5.035 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.072e-05/0.5677, allocations: 173.1 kB / 0.5234 GB, free: 4.836 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004384/0.5681, allocations: 315.7 kB / 0.5237 GB, free: 4.578 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/0.5681, allocations: 28.52 kB / 0.5237 GB, free: 4.547 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.961e-05/0.5682, allocations: 185.1 kB / 0.5239 GB, free: 4.391 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.784e-05/0.5683, allocations: 31.3 kB / 0.5239 GB, free: 4.371 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.383e-05/0.5683, allocations: 3.875 kB / 0.5239 GB, free: 4.371 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.287e-05/0.5684, allocations: 326.7 kB / 0.5242 GB, free: 4.047 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001371/0.5685, allocations: 33.89 kB / 0.5243 GB, free: 4.02 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002357/0.5688, allocations: 209.2 kB / 0.5245 GB, free: 3.773 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001849/0.569, allocations: 65.48 kB / 0.5245 GB, free: 3.73 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.569, allocations: 0 / 0.5245 GB, free: 3.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004989/0.5695, allocations: 218.9 kB / 0.5247 GB, free: 3.551 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.5695, allocations: 8 kB / 0.5247 GB, free: 3.543 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.5696, allocations: 4 kB / 0.5247 GB, free: 3.539 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.161e-05/0.5696, allocations: 12.03 kB / 0.5248 GB, free: 3.527 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002525/0.5698, allocations: 39.23 kB / 0.5248 GB, free: 3.492 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.5699, allocations: 7.938 kB / 0.5248 GB, free: 3.484 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001973/0.5701, allocations: 31.08 kB / 0.5248 GB, free: 3.457 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.166e-05/0.5701, allocations: 15.88 kB / 0.5249 GB, free: 3.445 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sum.y,sum.u[2],sum.u[1],upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.000205/0.5703, allocations: 176.6 kB / 0.525 GB, free: 3.285 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002726/0.5706, allocations: 142.7 kB / 0.5252 GB, free: 3.16 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003773/0.571, allocations: 129.3 kB / 0.5253 GB, free: 3.059 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.234e-06/0.571, allocations: 4 kB / 0.5253 GB, free: 3.055 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.571, allocations: 0 / 0.5253 GB, free: 3.055 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.022e-06/0.5711, allocations: 4 kB / 0.5253 GB, free: 3.051 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002558/0.5713, allocations: 278 kB / 0.5256 GB, free: 2.77 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.5713, allocations: 7.938 kB / 0.5256 GB, free: 2.762 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002263/0.5716, allocations: 27.23 kB / 0.5256 GB, free: 2.738 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/0.5716, allocations: 4 kB / 0.5256 GB, free: 2.734 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.11e-05/0.5716, allocations: 7.109 kB / 0.5256 GB, free: 2.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.5716, allocations: 4.312 kB / 0.5256 GB, free: 2.727 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.5716, allocations: 0 / 0.5256 GB, free: 2.727 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005487/0.5722, allocations: 273.4 kB / 0.5259 GB, free: 2.473 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001577/0.5724, allocations: 146.6 kB / 0.526 GB, free: 2.32 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.926e-05/0.5724, allocations: 7 kB / 0.526 GB, free: 2.316 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001528/0.5726, allocations: 7.062 kB / 0.526 GB, free: 2.312 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.674e-05/0.5727, allocations: 14.36 kB / 0.526 GB, free: 2.301 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.31e-05/0.5727, allocations: 11.98 kB / 0.526 GB, free: 2.289 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003276/0.573, allocations: 246.2 kB / 0.5263 GB, free: 2.094 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-07/0.5731, allocations: 0 / 0.5263 GB, free: 2.094 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004796/0.5735, allocations: 70.27 kB / 0.5263 GB, free: 2.035 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: 20 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * 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.001141/0.5747, allocations: 451.4 kB / 0.5268 GB, free: 1.609 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005128/0.5752, allocations: 170.1 kB / 0.5269 GB, free: 1.477 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.5752, allocations: 4 kB / 0.5269 GB, free: 1.473 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001235/0.5754, allocations: 30.36 kB / 0.527 GB, free: 1.449 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006235/0.576, allocations: 129.2 kB / 0.5271 GB, free: 1.348 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000983/0.577, allocations: 0.5293 MB / 0.5276 GB, free: 0.8281 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002372/0.5773, allocations: 0.7739 MB / 0.5284 GB, free: 36 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.739e-05/0.5774, allocations: 34.67 kB / 0.5284 GB, free: 4 kB / 330.7 MB Notification: Performance of SimCode: time 6.51e-07/0.5774, allocations: 0 / 0.5284 GB, free: 4 kB / 330.7 MB Notification: Performance of Templates: time 0.009045/0.5864, allocations: 3.626 MB / 0.5319 GB, free: 12.4 MB / 346.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches