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.0009626/0.0009626, allocations: 171.9 kB / 16.8 MB, free: 5.027 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.497/1.497, allocations: 205.4 MB / 223 MB, free: 9.016 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.0007871/0.0007873, allocations: 96.02 kB / 271.3 MB, free: 8.246 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.07395/0.07395, allocations: 12.59 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004316/0.0004319, allocations: 20 kB / 393.2 MB, free: 65.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1008, allocations: 50.38 MB / 443.6 MB, free: 15.51 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3728/0.4736, allocations: 82.43 MB / 0.5137 GB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002676/0.4739, allocations: 82.92 kB / 0.5138 GB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02219/0.4961, allocations: 8.667 MB / 0.5223 GB, free: 6.469 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.4961, allocations: 4 kB / 0.5223 GB, free: 6.465 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.178e-05/0.4962, allocations: 4 kB / 0.5223 GB, free: 6.461 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.0008442/0.497, allocations: 0.5669 MB / 0.5228 GB, free: 5.859 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/0.4971, allocations: 11.97 kB / 0.5228 GB, free: 5.848 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.4972, allocations: 36.55 kB / 0.5229 GB, free: 5.812 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005057/0.4977, allocations: 324.1 kB / 0.5232 GB, free: 5.484 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.655e-05/0.4978, allocations: 11.69 kB / 0.5232 GB, free: 5.477 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.04e-05/0.4978, allocations: 16 kB / 0.5232 GB, free: 5.465 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005936/0.4984, allocations: 318.2 kB / 0.5235 GB, free: 5.191 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.875e-05/0.4984, allocations: 4.125 kB / 0.5235 GB, free: 5.188 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.532e-05/0.4985, allocations: 11.42 kB / 0.5235 GB, free: 5.18 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-06/0.4985, allocations: 4 kB / 0.5235 GB, free: 5.176 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001752/0.4987, allocations: 68.34 kB / 0.5236 GB, free: 5.129 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005827/0.4993, allocations: 438.9 kB / 0.524 GB, free: 4.703 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003219/0.4996, allocations: 196.3 kB / 0.5242 GB, free: 4.527 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001356/0.4997, allocations: 94.17 kB / 0.5243 GB, free: 4.453 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.333e-05/0.4998, allocations: 7.984 kB / 0.5243 GB, free: 4.445 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000179/0.5, allocations: 88.06 kB / 0.5244 GB, free: 4.359 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 2.324e-06/0.5, allocations: 0 / 0.5244 GB, free: 4.359 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005164/0.5005, allocations: 260.4 kB / 0.5246 GB, free: 4.156 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.146e-05/0.5006, allocations: 168.5 kB / 0.5248 GB, free: 3.961 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003092/0.5009, allocations: 345.5 kB / 0.5251 GB, free: 3.676 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.051e-05/0.5009, allocations: 33.2 kB / 0.5251 GB, free: 3.641 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.323e-05/0.501, allocations: 123.2 kB / 0.5253 GB, free: 3.547 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.14e-05/0.501, allocations: 36.31 kB / 0.5253 GB, free: 3.52 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.273e-06/0.5011, allocations: 3.5 kB / 0.5253 GB, free: 3.52 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.247e-05/0.5011, allocations: 345.8 kB / 0.5256 GB, free: 3.184 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.649e-05/0.5012, allocations: 39.14 kB / 0.5257 GB, free: 3.152 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001522/0.5014, allocations: 197.8 kB / 0.5259 GB, free: 2.918 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002257/0.5016, allocations: 211.6 kB / 0.5261 GB, free: 2.691 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.5016, allocations: 0 / 0.5261 GB, free: 2.691 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003408/0.502, allocations: 238.2 kB / 0.5263 GB, free: 2.496 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.502, allocations: 4.625 kB / 0.5263 GB, free: 2.492 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.502, allocations: 8.062 kB / 0.5263 GB, free: 2.484 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.502, allocations: 8 kB / 0.5263 GB, free: 2.477 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001404/0.5022, allocations: 39.23 kB / 0.5263 GB, free: 2.441 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.759e-06/0.5022, allocations: 8.906 kB / 0.5263 GB, free: 2.434 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001223/0.5023, allocations: 31.2 kB / 0.5264 GB, free: 2.406 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.509e-05/0.5024, allocations: 8 kB / 0.5264 GB, free: 2.398 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.0001575/0.5025, allocations: 186 kB / 0.5266 GB, free: 2.23 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000172/0.5027, allocations: 146.3 kB / 0.5267 GB, free: 2.109 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002495/0.503, allocations: 127.6 kB / 0.5268 GB, free: 2.012 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.503, allocations: 4 kB / 0.5268 GB, free: 2.008 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.503, allocations: 8 kB / 0.5268 GB, free: 2 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.503, allocations: 0 / 0.5268 GB, free: 2 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001879/0.5032, allocations: 276 kB / 0.5271 GB, free: 1.723 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.5032, allocations: 0 / 0.5271 GB, free: 1.723 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001242/0.5033, allocations: 31.92 kB / 0.5271 GB, free: 1.691 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.379e-06/0.5034, allocations: 0 / 0.5271 GB, free: 1.691 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.797e-05/0.5034, allocations: 11.11 kB / 0.5271 GB, free: 1.684 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.5034, allocations: 0 / 0.5271 GB, free: 1.684 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.5034, allocations: 0 / 0.5271 GB, free: 1.684 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003347/0.5037, allocations: 259.5 kB / 0.5274 GB, free: 1.453 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001225/0.5039, allocations: 139.1 kB / 0.5275 GB, free: 1.309 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.982e-05/0.5039, allocations: 7.562 kB / 0.5275 GB, free: 1.305 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.551e-05/0.504, allocations: 7.375 kB / 0.5275 GB, free: 1.301 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.214e-05/0.5041, allocations: 11.55 kB / 0.5275 GB, free: 1.293 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.619e-05/0.5041, allocations: 7.984 kB / 0.5276 GB, free: 1.285 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002138/0.5043, allocations: 253.9 kB / 0.5278 GB, free: 1.082 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5043, allocations: 4 kB / 0.5278 GB, free: 1.078 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003667/0.5047, allocations: 68.91 kB / 0.5279 GB, free: 1.02 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.001023/0.5057, allocations: 454.4 kB / 0.5283 GB, free: 0.582 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004053/0.5061, allocations: 168 kB / 0.5285 GB, free: 460 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.5062, allocations: 0 / 0.5285 GB, free: 460 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.853e-05/0.5063, allocations: 33.67 kB / 0.5285 GB, free: 436 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005133/0.5068, allocations: 111.9 kB / 0.5286 GB, free: 348 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008352/0.5076, allocations: 0.5043 MB / 0.5291 GB, free: 15.85 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004163/0.5081, allocations: 0.7675 MB / 0.5298 GB, free: 15.06 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001371/0.5082, allocations: 34.41 kB / 0.5299 GB, free: 15.03 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.755e-05/0.5083, allocations: 31.45 kB / 0.5299 GB, free: 15 MB / 346.7 MB Notification: Performance of SimCode: time 8.12e-07/0.5083, allocations: 4 kB / 0.5299 GB, free: 15 MB / 346.7 MB Notification: Performance of Templates: time 0.008214/0.5165, allocations: 3.385 MB / 0.5332 GB, free: 11.63 MB / 346.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/jenkins1/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