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.001721/0.00172, allocations: 177.1 kB / 13.7 MB, free: 1.617 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.033/2.033, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001111/0.001111, allocations: 90.62 kB / 267.6 MB, free: 14.12 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.101/0.101, allocations: 12.6 MB / 328.2 MB, free: 11.17 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.974e-05/3.984e-05, allocations: 8 kB / 386 MB, free: 1.309 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.3228, allocations: 50.36 MB / 436.4 MB, free: 14.17 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1528/0.4757, allocations: 82.28 MB / 0.5065 GB, free: 11.77 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003244/0.476, allocations: 83.95 kB / 0.5066 GB, free: 11.69 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03876/0.5148, allocations: 8.647 MB / 0.515 GB, free: 3.031 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.619e-06/0.5149, allocations: 7.938 kB / 0.515 GB, free: 3.023 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.982e-05/0.5149, allocations: 7.938 kB / 0.515 GB, free: 3.016 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0009375/0.5159, allocations: 0.515 MB / 0.5155 GB, free: 2.449 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.245e-05/0.5159, allocations: 16.02 kB / 0.5155 GB, free: 2.434 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.695e-05/0.516, allocations: 27.62 kB / 0.5156 GB, free: 2.406 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000686/0.5167, allocations: 310.4 kB / 0.5159 GB, free: 2.062 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.436e-05/0.5168, allocations: 11.95 kB / 0.5159 GB, free: 2.051 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.613e-05/0.5168, allocations: 19.98 kB / 0.5159 GB, free: 2.031 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007799/0.5176, allocations: 315 kB / 0.5162 GB, free: 1.695 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.5177, allocations: 0 / 0.5162 GB, free: 1.695 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.441e-05/0.5177, allocations: 0 / 0.5162 GB, free: 1.695 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.5177, allocations: 4 kB / 0.5162 GB, free: 1.691 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002331/0.518, allocations: 71.91 kB / 0.5163 GB, free: 1.621 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008244/0.5188, allocations: 442.2 kB / 0.5167 GB, free: 1.133 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004664/0.5193, allocations: 192 kB / 0.5169 GB, free: 0.918 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002309/0.5195, allocations: 90.69 kB / 0.517 GB, free: 0.8203 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.733e-05/0.5196, allocations: 12.17 kB / 0.517 GB, free: 0.8086 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001983/0.5198, allocations: 83.3 kB / 0.517 GB, free: 0.7148 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 2.404e-06/0.5198, allocations: 0 / 0.517 GB, free: 0.7148 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005633/0.5204, allocations: 185.3 kB / 0.5172 GB, free: 0.5273 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001291/0.5205, allocations: 170.2 kB / 0.5174 GB, free: 332 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005538/0.5211, allocations: 319.3 kB / 0.5177 GB, free: 8 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.2842/0.8053, allocations: 25.7 kB / 0.5177 GB, free: 86.21 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001559/0.8055, allocations: 183.8 kB / 0.5179 GB, free: 86.06 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.693e-05/0.8056, allocations: 25.09 kB / 0.5179 GB, free: 86.06 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.671e-05/0.8056, allocations: 4.531 kB / 0.5179 GB, free: 86.06 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.13e-05/0.8057, allocations: 323.4 kB / 0.5182 GB, free: 85.75 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001504/0.8059, allocations: 39.03 kB / 0.5183 GB, free: 85.75 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002524/0.8061, allocations: 187.8 kB / 0.5184 GB, free: 85.58 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001999/0.8063, allocations: 72.61 kB / 0.5185 GB, free: 85.58 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.683e-06/0.8064, allocations: 1.5 kB / 0.5185 GB, free: 85.58 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005462/0.8069, allocations: 215.8 kB / 0.5187 GB, free: 85.55 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.497e-05/0.807, allocations: 6.188 kB / 0.5187 GB, free: 85.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.807, allocations: 7.438 kB / 0.5187 GB, free: 85.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.683e-05/0.807, allocations: 10.59 kB / 0.5187 GB, free: 85.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002991/0.8073, allocations: 40.94 kB / 0.5188 GB, free: 85.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.01e-05/0.8074, allocations: 8.484 kB / 0.5188 GB, free: 85.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000249/0.8076, allocations: 17.56 kB / 0.5188 GB, free: 85.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.04e-05/0.8077, allocations: 12.33 kB / 0.5188 GB, free: 85.55 MB / 362.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 () * 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.0001636/0.8078, allocations: 139.2 kB / 0.5189 GB, free: 85.44 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003289/0.8082, allocations: 142.1 kB / 0.5191 GB, free: 85.39 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004177/0.8086, allocations: 134 kB / 0.5192 GB, free: 85.35 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.8086, allocations: 3.062 kB / 0.5192 GB, free: 85.35 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.8087, allocations: 2.109 kB / 0.5192 GB, free: 85.35 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.308e-06/0.8087, allocations: 5.812 kB / 0.5192 GB, free: 85.35 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003491/0.809, allocations: 270.1 kB / 0.5195 GB, free: 85.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.8091, allocations: 1.031 kB / 0.5195 GB, free: 85.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002597/0.8093, allocations: 39.8 kB / 0.5195 GB, free: 85.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.784e-06/0.8093, allocations: 1.406 kB / 0.5195 GB, free: 85.16 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.495e-05/0.8094, allocations: 6.547 kB / 0.5195 GB, free: 85.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.244e-06/0.8094, allocations: 6 kB / 0.5195 GB, free: 85.15 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.8094, allocations: 1.25 kB / 0.5195 GB, free: 85.15 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000544/0.81, allocations: 264 kB / 0.5198 GB, free: 85.03 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002016/0.8102, allocations: 145.2 kB / 0.5199 GB, free: 84.92 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.544e-05/0.8103, allocations: 7.797 kB / 0.5199 GB, free: 84.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001584/0.8104, allocations: 9.359 kB / 0.5199 GB, free: 84.92 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.409e-05/0.8105, allocations: 7.703 kB / 0.5199 GB, free: 84.92 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.013e-05/0.8106, allocations: 11.25 kB / 0.52 GB, free: 84.92 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000402/0.811, allocations: 246.1 kB / 0.5202 GB, free: 84.83 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.811, allocations: 4 kB / 0.5202 GB, free: 84.83 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005734/0.8116, allocations: 64.83 kB / 0.5203 GB, free: 84.83 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: 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) * 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.001169/0.8128, allocations: 405.3 kB / 0.5206 GB, free: 84.57 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005513/0.8133, allocations: 160.8 kB / 0.5208 GB, free: 84.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.8133, allocations: 4.062 kB / 0.5208 GB, free: 84.56 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001002/0.8135, allocations: 31.55 kB / 0.5208 GB, free: 84.56 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006968/0.8142, allocations: 114.1 kB / 0.5209 GB, free: 84.54 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001007/0.8152, allocations: 386.6 kB / 0.5213 GB, free: 84.38 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003533/0.8156, allocations: 0.7805 MB / 0.5221 GB, free: 83.67 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001322/0.8157, allocations: 28.97 kB / 0.5221 GB, free: 83.67 MB / 362.7 MB Notification: Performance of SimCode: time 1.253e-06/0.8157, allocations: 0 / 0.5221 GB, free: 83.67 MB / 362.7 MB Notification: Performance of Templates: time 0.01091/0.8266, allocations: 3.635 MB / 0.5256 GB, free: 83.34 MB / 362.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