Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.00159/0.00159, allocations: 179.4 kB / 15.8 MB, free: 6.34 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.631/1.631, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0008497/0.00085, allocations: 98.8 kB / 270.3 MB, free: 13.37 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.08559/0.08559, allocations: 12.59 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000373/0.000373, allocations: 14.31 kB / 392 MB, free: 54.85 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1174, allocations: 50.37 MB / 442.4 MB, free: 10.94 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1225/0.24, allocations: 82.36 MB / 0.5124 GB, free: 8.465 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003018/0.2404, allocations: 91.88 kB / 0.5125 GB, free: 8.375 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2764/0.5168, allocations: 8.673 MB / 0.521 GB, free: 84.18 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.036e-06/0.5169, allocations: 0.5 kB / 0.521 GB, free: 84.18 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.996e-05/0.517, allocations: 6.938 kB / 0.521 GB, free: 84.18 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.001346/0.5183, allocations: 0.5586 MB / 0.5215 GB, free: 83.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.667e-05/0.5184, allocations: 9.594 kB / 0.5216 GB, free: 83.77 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.614e-05/0.5185, allocations: 35.09 kB / 0.5216 GB, free: 83.75 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005974/0.5191, allocations: 309.9 kB / 0.5219 GB, free: 83.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.014e-05/0.5192, allocations: 16.11 kB / 0.5219 GB, free: 83.53 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.974e-05/0.5192, allocations: 13.16 kB / 0.5219 GB, free: 83.53 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008307/0.5201, allocations: 328.9 kB / 0.5222 GB, free: 83.43 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.5201, allocations: 3.75 kB / 0.5222 GB, free: 83.43 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.551e-05/0.5201, allocations: 6.094 kB / 0.5222 GB, free: 83.43 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.5202, allocations: 2.281 kB / 0.5222 GB, free: 83.43 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002521/0.5204, allocations: 69.52 kB / 0.5223 GB, free: 83.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008009/0.5212, allocations: 432.3 kB / 0.5227 GB, free: 83.14 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004962/0.5217, allocations: 201.3 kB / 0.5229 GB, free: 83.07 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.098e-05/0.5218, allocations: 5.578 kB / 0.5229 GB, free: 83.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002283/0.522, allocations: 79.78 kB / 0.523 GB, free: 83.03 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 2.916e-06/0.5221, allocations: 3.344 kB / 0.523 GB, free: 83.03 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008114/0.5229, allocations: 252.5 kB / 0.5232 GB, free: 82.98 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/0.523, allocations: 168.2 kB / 0.5234 GB, free: 82.8 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005326/0.5235, allocations: 312.9 kB / 0.5237 GB, free: 82.7 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.985e-05/0.5236, allocations: 32.69 kB / 0.5237 GB, free: 82.66 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.5237, allocations: 136.2 kB / 0.5239 GB, free: 82.58 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.213e-05/0.5238, allocations: 36.97 kB / 0.5239 GB, free: 82.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.179e-05/0.5238, allocations: 5.469 kB / 0.5239 GB, free: 82.57 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.5239, allocations: 338 kB / 0.5242 GB, free: 82.25 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001462/0.5241, allocations: 46.92 kB / 0.5243 GB, free: 82.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002781/0.5244, allocations: 203 kB / 0.5245 GB, free: 82.07 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001991/0.5246, allocations: 69.48 kB / 0.5245 GB, free: 82.06 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.5246, allocations: 1.688 kB / 0.5245 GB, free: 82.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005979/0.5252, allocations: 240.6 kB / 0.5248 GB, free: 82 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.5253, allocations: 7.344 kB / 0.5248 GB, free: 82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.5253, allocations: 4 kB / 0.5248 GB, free: 82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.009e-05/0.5253, allocations: 6.469 kB / 0.5248 GB, free: 82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002205/0.5255, allocations: 39.08 kB / 0.5248 GB, free: 81.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.963e-05/0.5256, allocations: 6.844 kB / 0.5248 GB, free: 81.99 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000188/0.5258, allocations: 17.09 kB / 0.5248 GB, free: 81.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.204e-05/0.5258, allocations: 22.05 kB / 0.5248 GB, free: 81.98 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 () * 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.0002464/0.5261, allocations: 182.7 kB / 0.525 GB, free: 81.86 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000322/0.5264, allocations: 140.7 kB / 0.5252 GB, free: 81.81 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004496/0.5269, allocations: 129.1 kB / 0.5253 GB, free: 81.77 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.183e-05/0.5269, allocations: 3.344 kB / 0.5253 GB, free: 81.77 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/0.5269, allocations: 2.516 kB / 0.5253 GB, free: 81.77 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.5269, allocations: 4.75 kB / 0.5253 GB, free: 81.76 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004533/0.5274, allocations: 280.9 kB / 0.5256 GB, free: 81.56 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.227e-06/0.5274, allocations: 3.594 kB / 0.5256 GB, free: 81.56 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000215/0.5276, allocations: 31.77 kB / 0.5256 GB, free: 81.56 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.434e-06/0.5277, allocations: 2.281 kB / 0.5256 GB, free: 81.56 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.676e-05/0.5277, allocations: 7.078 kB / 0.5256 GB, free: 81.56 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.15e-06/0.5277, allocations: 5.031 kB / 0.5256 GB, free: 81.56 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.5277, allocations: 0.9688 kB / 0.5256 GB, free: 81.56 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005964/0.5283, allocations: 276.8 kB / 0.5259 GB, free: 81.42 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001981/0.5285, allocations: 133 kB / 0.526 GB, free: 81.31 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.372e-05/0.5286, allocations: 8.75 kB / 0.526 GB, free: 81.31 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.5287, allocations: 8 kB / 0.526 GB, free: 81.31 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.85e-05/0.5288, allocations: 8.891 kB / 0.526 GB, free: 81.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.218e-05/0.5289, allocations: 10.14 kB / 0.526 GB, free: 81.31 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004562/0.5293, allocations: 252.4 kB / 0.5263 GB, free: 81.23 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5294, allocations: 3.938 kB / 0.5263 GB, free: 81.22 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006156/0.53, allocations: 69.48 kB / 0.5263 GB, free: 81.21 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) * 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.001403/0.5314, allocations: 449.6 kB / 0.5268 GB, free: 80.9 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006048/0.532, allocations: 168.8 kB / 0.5269 GB, free: 80.89 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.532, allocations: 1.312 kB / 0.5269 GB, free: 80.89 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001435/0.5322, allocations: 32.53 kB / 0.527 GB, free: 80.89 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006874/0.5329, allocations: 122.1 kB / 0.5271 GB, free: 80.87 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001183/0.5341, allocations: 0.497 MB / 0.5276 GB, free: 80.59 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003535/0.5344, allocations: 0.7728 MB / 0.5283 GB, free: 79.9 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001622/0.5346, allocations: 39.97 kB / 0.5284 GB, free: 79.89 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001034/0.5347, allocations: 29.97 kB / 0.5284 GB, free: 79.88 MB / 362.7 MB Notification: Performance of SimCode: time 6.62e-07/0.5348, allocations: 1.375 kB / 0.5284 GB, free: 79.88 MB / 362.7 MB Notification: Performance of Templates: time 0.01111/0.5459, allocations: 3.339 MB / 0.5316 GB, free: 79.61 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches