Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|add.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|add.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001758/0.001758, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00254/0.00254, allocations: 212.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.627/1.627, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 55.83 kB / 306.9 MB, free: 0.6641 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1484/0.1498, allocations: 50.54 MB / 357.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1): time 0.003698/0.1535, allocations: 1.751 MB / 359.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001322/0.1549, allocations: 0.6077 MB / 359.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001228/0.155, allocations: 7.938 kB / 359.8 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.838e-05/0.1551, allocations: 7.875 kB / 359.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000173/0.1553, allocations: 23.84 kB / 359.9 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005199/0.1558, allocations: 103.6 kB / 360 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001481/0.156, allocations: 87.77 kB / 360.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001341/0.1561, allocations: 33.42 kB / 360.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001442/0.1563, allocations: 43.78 kB / 360.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.382e-05/0.1564, allocations: 59.69 kB / 360.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.872e-05/0.1564, allocations: 8 kB / 360.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.649e-05/0.1565, allocations: 12 kB / 360.2 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.439e-05/0.1565, allocations: 23.92 kB / 360.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.844e-05/0.1566, allocations: 47.67 kB / 360.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001971/0.1569, allocations: 107.6 kB / 360.4 MB, free: 11.19 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.1569, allocations: 0 / 360.4 MB, free: 11.19 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1569, allocations: 0 / 360.4 MB, free: 11.19 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.1569, allocations: 0 / 360.4 MB, free: 11.19 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0006433/0.1575, allocations: 435.2 kB / 360.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.1576, allocations: 12.03 kB / 360.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001668/0.1578, allocations: 28.67 kB / 360.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002648/0.158, allocations: 221 kB / 361.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.413e-05/0.1581, allocations: 4.375 kB / 361.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.558e-05/0.1581, allocations: 16.36 kB / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000511/0.1586, allocations: 266.6 kB / 361.3 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.1586, allocations: 0 / 361.3 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.633e-05/0.1587, allocations: 8 kB / 361.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.1587, allocations: 7.984 kB / 361.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001408/0.1588, allocations: 43.92 kB / 361.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005144/0.1594, allocations: 318.3 kB / 361.7 MB, free: 9.699 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002781/0.1596, allocations: 131.9 kB / 361.8 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000139/0.1598, allocations: 70.66 kB / 361.9 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.987e-05/0.1598, allocations: 8.141 kB / 361.9 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.14e-05/0.1599, allocations: 42.56 kB / 362 MB, free: 9.406 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.403e-06/0.1599, allocations: 3.938 kB / 362 MB, free: 9.402 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004801/0.1604, allocations: 165.4 kB / 362.1 MB, free: 9.234 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/0.1605, allocations: 130.6 kB / 362.3 MB, free: 9.082 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001743/0.1607, allocations: 154.2 kB / 362.4 MB, free: 8.922 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.072e-05/0.1607, allocations: 25.7 kB / 362.4 MB, free: 8.891 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.613e-05/0.1608, allocations: 100.2 kB / 362.5 MB, free: 8.789 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.791e-05/0.1608, allocations: 15.89 kB / 362.5 MB, free: 8.773 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.636e-05/0.1609, allocations: 41.61 kB / 362.6 MB, free: 8.727 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.161, allocations: 322.8 kB / 362.9 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.103e-05/0.1611, allocations: 27.98 kB / 362.9 MB, free: 8.375 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001361/0.1612, allocations: 130.6 kB / 363.1 MB, free: 8.195 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002189/0.1615, allocations: 174.3 kB / 363.2 MB, free: 7.973 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.1615, allocations: 0 / 363.2 MB, free: 7.973 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002887/0.1618, allocations: 181.5 kB / 363.4 MB, free: 7.789 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/0.1618, allocations: 8 kB / 363.4 MB, free: 7.781 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.1618, allocations: 8.516 kB / 363.4 MB, free: 7.773 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.245e-05/0.1618, allocations: 8 kB / 363.4 MB, free: 7.766 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001373/0.162, allocations: 35.86 kB / 363.5 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.132e-05/0.162, allocations: 4 kB / 363.5 MB, free: 7.727 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.809e-05/0.1621, allocations: 19.84 kB / 363.5 MB, free: 7.707 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.685e-05/0.1621, allocations: 8 kB / 363.5 MB, free: 7.699 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 8 ($CLKPRE.upSample2.b_super,upSample2.b_super,$CLKPRE.upSample1.b_super,upSample1.b_super,$CLKPRE.upSample2.b,upSample2.b,$CLKPRE.upSample1.b,upSample1.b) * 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 (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001463/0.1623, allocations: 141.7 kB / 363.6 MB, free: 7.551 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002027/0.1625, allocations: 117.4 kB / 363.7 MB, free: 7.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.478e-05/0.1626, allocations: 20.72 kB / 363.8 MB, free: 7.406 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.1626, allocations: 8 kB / 363.8 MB, free: 7.398 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.1626, allocations: 0 / 363.8 MB, free: 7.398 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.1626, allocations: 3.938 kB / 363.8 MB, free: 7.395 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000261/0.1629, allocations: 193.5 kB / 364 MB, free: 7.156 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.1629, allocations: 4 kB / 364 MB, free: 7.152 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001196/0.163, allocations: 27.92 kB / 364 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.163, allocations: 7.984 kB / 364 MB, free: 7.117 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/0.163, allocations: 0 / 364 MB, free: 7.117 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-05/0.1631, allocations: 7.984 kB / 364 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.1631, allocations: 0 / 364 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000353/0.1634, allocations: 256 kB / 364.3 MB, free: 6.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001013/0.1635, allocations: 104.9 kB / 364.4 MB, free: 6.719 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.005e-05/0.1636, allocations: 11.94 kB / 364.4 MB, free: 6.707 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.413e-05/0.1637, allocations: 0 / 364.4 MB, free: 6.707 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.135e-05/0.1637, allocations: 7.938 kB / 364.4 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.216e-05/0.1637, allocations: 8 kB / 364.4 MB, free: 6.691 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.815e-05/0.1638, allocations: 116.1 kB / 364.5 MB, free: 6.578 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1638, allocations: 0 / 364.5 MB, free: 6.578 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003024/0.1642, allocations: 24 kB / 364.5 MB, free: 6.555 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Number of discrete states: 0 () * 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 (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000154/0.1643, allocations: 103.6 kB / 364.6 MB, free: 6.441 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003253/0.1646, allocations: 116.7 kB / 364.7 MB, free: 6.328 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.1647, allocations: 0 / 364.7 MB, free: 6.328 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.239e-05/0.1647, allocations: 12 kB / 364.8 MB, free: 6.316 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006118/0.1653, allocations: 80.25 kB / 364.8 MB, free: 6.238 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005817/0.1659, allocations: 285.7 kB / 365.1 MB, free: 5.922 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003526/0.1663, allocations: 0.7162 MB / 365.8 MB, free: 5.18 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.451e-05/0.1664, allocations: 17.42 kB / 365.9 MB, free: 5.164 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.915e-05/0.1664, allocations: 15.44 kB / 365.9 MB, free: 5.148 MB / 302.1 MB Notification: Performance of SimCode: time 4e-07/0.1664, allocations: 0 / 365.9 MB, free: 5.148 MB / 302.1 MB Notification: Performance of Templates: time 0.00433/0.1707, allocations: 1.201 MB / 367.1 MB, free: 3.957 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/UpSample1/UpSample1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches