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.0009011/0.0009013, allocations: 176 kB / 16.45 MB, free: 5.684 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.304/1.304, allocations: 205.4 MB / 222.6 MB, free: 9.113 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.0006909/0.0006908, allocations: 78.38 kB / 270.9 MB, free: 8.359 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.07085/0.07085, allocations: 12.6 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004537/0.0004537, allocations: 16 kB / 392.7 MB, free: 66.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09398/0.09445, allocations: 50.38 MB / 443 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample): time 0.001991/0.09651, allocations: 1.622 MB / 444.7 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001341/0.09787, allocations: 1.054 MB / 445.7 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001165/0.098, allocations: 7.938 kB / 445.7 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003016/0.09832, allocations: 59.8 kB / 445.8 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002093/0.09854, allocations: 79.7 kB / 445.9 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006651/0.09921, allocations: 235.5 kB / 446.1 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001859/0.09941, allocations: 183.4 kB / 446.3 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001216/0.09954, allocations: 37.67 kB / 446.3 MB, free: 12.51 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.013e-05/0.09963, allocations: 75.62 kB / 446.4 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001146/0.09976, allocations: 87.59 kB / 446.5 MB, free: 12.35 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.591e-05/0.09979, allocations: 4 kB / 446.5 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001216/0.09992, allocations: 51.97 kB / 446.5 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.325e-05/0.09999, allocations: 59.75 kB / 446.6 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.789e-05/0.1, allocations: 57.58 kB / 446.6 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002035/0.1003, allocations: 207.8 kB / 446.8 MB, free: 11.97 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1003, allocations: 4 kB / 446.8 MB, free: 11.96 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1003, allocations: 0 / 446.8 MB, free: 11.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.1003, allocations: 0 / 446.8 MB, free: 11.96 MB / 298.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.0007551/0.101, allocations: 0.5272 MB / 447.4 MB, free: 11.38 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.1011, allocations: 12.03 kB / 447.4 MB, free: 11.37 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.941e-05/0.1011, allocations: 27.62 kB / 447.4 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00033/0.1015, allocations: 302.2 kB / 447.7 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.631e-05/0.1015, allocations: 8 kB / 447.7 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.48e-05/0.1016, allocations: 19.98 kB / 447.7 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005078/0.1021, allocations: 327 kB / 448 MB, free: 10.63 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.1021, allocations: 0 / 448 MB, free: 10.63 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.768e-05/0.1021, allocations: 4 kB / 448 MB, free: 10.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.1021, allocations: 0 / 448 MB, free: 10.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001537/0.1023, allocations: 71.94 kB / 448.1 MB, free: 10.56 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004774/0.1028, allocations: 422.2 kB / 448.5 MB, free: 10.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002967/0.1031, allocations: 191.9 kB / 448.7 MB, free: 9.875 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000131/0.1032, allocations: 102.5 kB / 448.8 MB, free: 9.766 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.405e-05/0.1033, allocations: 4.219 kB / 448.8 MB, free: 9.762 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001488/0.1034, allocations: 79.38 kB / 448.9 MB, free: 9.672 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.823e-06/0.1034, allocations: 0 / 448.9 MB, free: 9.672 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.000468/0.1039, allocations: 261 kB / 449.2 MB, free: 9.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.347e-05/0.104, allocations: 162.2 kB / 449.3 MB, free: 9.215 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002752/0.1043, allocations: 346.9 kB / 449.6 MB, free: 8.867 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.1043, allocations: 33.64 kB / 449.7 MB, free: 8.828 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.373e-05/0.1044, allocations: 132.6 kB / 449.8 MB, free: 8.691 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.556e-05/0.1044, allocations: 31.69 kB / 449.8 MB, free: 8.66 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.963e-06/0.1044, allocations: 4 kB / 449.8 MB, free: 8.656 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.781e-05/0.1045, allocations: 338.8 kB / 450.2 MB, free: 8.316 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.183e-05/0.1046, allocations: 44.45 kB / 450.2 MB, free: 8.273 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001269/0.1047, allocations: 183.5 kB / 450.4 MB, free: 8.031 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001105/0.1048, allocations: 63.92 kB / 450.5 MB, free: 7.969 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.1048, allocations: 4 kB / 450.5 MB, free: 7.965 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003041/0.1051, allocations: 233 kB / 450.7 MB, free: 7.73 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.1052, allocations: 8 kB / 450.7 MB, free: 7.723 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.1052, allocations: 4 kB / 450.7 MB, free: 7.719 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.1052, allocations: 4 kB / 450.7 MB, free: 7.715 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001501/0.1054, allocations: 48.34 kB / 450.8 MB, free: 7.668 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.1054, allocations: 7.984 kB / 450.8 MB, free: 7.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001108/0.1055, allocations: 23.84 kB / 450.8 MB, free: 7.637 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.589e-05/0.1055, allocations: 16 kB / 450.8 MB, free: 7.621 MB / 298.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,table.y,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.0001351/0.1057, allocations: 180.6 kB / 451 MB, free: 7.438 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00016/0.1058, allocations: 141.6 kB / 451.1 MB, free: 7.293 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.906e-05/0.1059, allocations: 33.72 kB / 451.2 MB, free: 7.258 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.1059, allocations: 4.094 kB / 451.2 MB, free: 7.254 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.1059, allocations: 11.89 kB / 451.2 MB, free: 7.242 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.1059, allocations: 4 kB / 451.2 MB, free: 7.238 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001536/0.1061, allocations: 257.8 kB / 451.4 MB, free: 6.938 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.1061, allocations: 4 kB / 451.4 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001181/0.1062, allocations: 31.92 kB / 451.5 MB, free: 6.902 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.1062, allocations: 0 / 451.5 MB, free: 6.902 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.495e-05/0.1063, allocations: 11.98 kB / 451.5 MB, free: 6.891 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.1063, allocations: 400 / 451.5 MB, free: 6.891 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.1063, allocations: 4 kB / 451.5 MB, free: 6.887 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002955/0.1066, allocations: 260.6 kB / 451.7 MB, free: 6.609 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.232e-05/0.1067, allocations: 124.7 kB / 451.8 MB, free: 6.469 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.482e-05/0.1067, allocations: 8 kB / 451.9 MB, free: 6.461 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.637e-05/0.1068, allocations: 11.98 kB / 451.9 MB, free: 6.449 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.901e-05/0.1068, allocations: 7.984 kB / 451.9 MB, free: 6.441 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.984e-05/0.1069, allocations: 8 kB / 451.9 MB, free: 6.434 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001774/0.1071, allocations: 249.9 kB / 452.1 MB, free: 6.191 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1071, allocations: 7.938 kB / 452.1 MB, free: 6.184 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002769/0.1073, allocations: 47.95 kB / 452.2 MB, free: 6.137 MB / 298.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,table.y,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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * 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 (22): * Single equations (assignments): 20 * 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.0008117/0.1082, allocations: 440.8 kB / 452.6 MB, free: 5.699 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003277/0.1085, allocations: 148.7 kB / 452.8 MB, free: 5.555 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1085, allocations: 0 / 452.8 MB, free: 5.555 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.174e-05/0.1086, allocations: 27.98 kB / 452.8 MB, free: 5.527 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004696/0.1091, allocations: 120.7 kB / 452.9 MB, free: 5.406 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007014/0.1098, allocations: 0.5302 MB / 453.4 MB, free: 4.844 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002169/0.11, allocations: 0.7599 MB / 454.2 MB, free: 4.059 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.896e-05/0.1101, allocations: 31.42 kB / 454.2 MB, free: 4.027 MB / 298.7 MB Notification: Performance of SimCode: time 2.5e-07/0.1101, allocations: 4 kB / 454.2 MB, free: 4.023 MB / 298.7 MB Notification: Performance of Templates: time 0.004882/0.115, allocations: 3.574 MB / 457.8 MB, free: 448 kB / 298.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