Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001481/0.00148, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 102.1 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009586/0.0009586, allocations: 43.94 kB / 350 MB, free: 76 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3493/0.3503, allocations: 49.44 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003317/0.3537, allocations: 2.002 MB / 401.5 MB, free: 31.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001814/0.3555, allocations: 1.174 MB / 402.6 MB, free: 30.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001196/0.3557, allocations: 7.938 kB / 402.7 MB, free: 30.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003417/0.356, allocations: 63.78 kB / 402.7 MB, free: 30.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002015/0.3562, allocations: 87.66 kB / 402.8 MB, free: 30.03 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006928/0.3569, allocations: 275.6 kB / 403.1 MB, free: 29.76 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002104/0.3572, allocations: 203.4 kB / 403.3 MB, free: 29.56 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.3573, allocations: 37.67 kB / 403.3 MB, free: 29.53 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.293e-05/0.3574, allocations: 87.56 kB / 403.4 MB, free: 29.44 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001221/0.3575, allocations: 99.59 kB / 403.5 MB, free: 29.34 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.61e-05/0.3576, allocations: 7.938 kB / 403.5 MB, free: 29.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001292/0.3577, allocations: 67.89 kB / 403.6 MB, free: 29.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.53e-05/0.3578, allocations: 59.83 kB / 403.6 MB, free: 29.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.631e-05/0.3579, allocations: 91.33 kB / 403.7 MB, free: 29.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002731/0.3582, allocations: 276.6 kB / 404 MB, free: 28.85 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.3582, allocations: 0 / 404 MB, free: 28.85 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.3582, allocations: 0 / 404 MB, free: 28.85 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.3582, allocations: 4 kB / 404 MB, free: 28.85 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.0007726/0.359, allocations: 0.5817 MB / 404.6 MB, free: 28.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.359, allocations: 8.031 kB / 404.6 MB, free: 28.2 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.674e-05/0.3591, allocations: 32.56 kB / 404.6 MB, free: 28.17 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003335/0.3594, allocations: 303.4 kB / 404.9 MB, free: 27.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.008e-05/0.3595, allocations: 12.31 kB / 404.9 MB, free: 27.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.355e-05/0.3595, allocations: 20.12 kB / 404.9 MB, free: 27.8 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004946/0.36, allocations: 329.5 kB / 405.3 MB, free: 27.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.36, allocations: 0 / 405.3 MB, free: 27.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.639e-05/0.36, allocations: 4 kB / 405.3 MB, free: 27.45 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.36, allocations: 0 / 405.3 MB, free: 27.45 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001507/0.3602, allocations: 71.89 kB / 405.3 MB, free: 27.38 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004591/0.3607, allocations: 414.3 kB / 405.7 MB, free: 26.92 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002962/0.361, allocations: 199.9 kB / 405.9 MB, free: 26.7 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001307/0.3611, allocations: 94.53 kB / 406 MB, free: 26.6 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.452e-05/0.3612, allocations: 8.219 kB / 406 MB, free: 26.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001482/0.3613, allocations: 75.38 kB / 406.1 MB, free: 26.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.633e-06/0.3613, allocations: 3.938 kB / 406.1 MB, free: 26.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004516/0.3618, allocations: 249.2 kB / 406.4 MB, free: 26.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.951e-05/0.3619, allocations: 174.2 kB / 406.5 MB, free: 26.04 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002567/0.3621, allocations: 342.9 kB / 406.9 MB, free: 25.7 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.649e-05/0.3622, allocations: 33.7 kB / 406.9 MB, free: 25.66 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.45e-05/0.3622, allocations: 128.7 kB / 407 MB, free: 25.53 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.692e-05/0.3623, allocations: 39.62 kB / 407.1 MB, free: 25.49 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.6e-05/0.3623, allocations: 49.94 kB / 407.1 MB, free: 25.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.769e-05/0.3624, allocations: 342.8 kB / 407.4 MB, free: 25.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.016e-05/0.3625, allocations: 40.44 kB / 407.5 MB, free: 25.05 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001272/0.3626, allocations: 192.5 kB / 407.7 MB, free: 24.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001957/0.3628, allocations: 211.9 kB / 407.9 MB, free: 24.54 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3628, allocations: 0 / 407.9 MB, free: 24.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003197/0.3631, allocations: 237.1 kB / 408.1 MB, free: 24.3 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.3632, allocations: 11.94 kB / 408.1 MB, free: 24.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.3632, allocations: 11.88 kB / 408.1 MB, free: 24.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.3632, allocations: 4 kB / 408.1 MB, free: 24.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001405/0.3634, allocations: 43.91 kB / 408.2 MB, free: 24.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.008e-05/0.3634, allocations: 11.94 kB / 408.2 MB, free: 24.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.999e-05/0.3635, allocations: 11.94 kB / 408.2 MB, free: 24.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.475e-05/0.3635, allocations: 12.34 kB / 408.2 MB, free: 24.19 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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,sum.y,sum.u[2],sum.u[1],upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample1.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000131/0.3636, allocations: 184.5 kB / 408.4 MB, free: 24 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000158/0.3638, allocations: 137.2 kB / 408.5 MB, free: 23.86 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.177e-05/0.3639, allocations: 33.73 kB / 408.6 MB, free: 23.83 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.3639, allocations: 4 kB / 408.6 MB, free: 23.83 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.3639, allocations: 3.938 kB / 408.6 MB, free: 23.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.3639, allocations: 11.92 kB / 408.6 MB, free: 23.81 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001627/0.3641, allocations: 257.4 kB / 408.8 MB, free: 23.51 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3641, allocations: 4 kB / 408.8 MB, free: 23.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000111/0.3642, allocations: 31.97 kB / 408.9 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.3642, allocations: 0 / 408.9 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.662e-05/0.3642, allocations: 8 kB / 408.9 MB, free: 23.47 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.3642, allocations: 0 / 408.9 MB, free: 23.47 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.3642, allocations: 3.938 kB / 408.9 MB, free: 23.46 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000579/0.3648, allocations: 0.9023 MB / 409.8 MB, free: 22.5 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.652e-05/0.3649, allocations: 128.8 kB / 409.9 MB, free: 22.35 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.616e-05/0.365, allocations: 8 kB / 409.9 MB, free: 22.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.459e-05/0.3651, allocations: 8 kB / 409.9 MB, free: 22.34 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.621e-05/0.3651, allocations: 7.984 kB / 409.9 MB, free: 22.33 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.165e-05/0.3651, allocations: 12.05 kB / 409.9 MB, free: 22.32 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001833/0.3653, allocations: 245.9 kB / 410.2 MB, free: 22.07 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3653, allocations: 0 / 410.2 MB, free: 22.07 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000383/0.3657, allocations: 59.94 kB / 410.2 MB, free: 22.02 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,sample1.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 (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.0009149/0.3667, allocations: 432.4 kB / 410.7 MB, free: 21.75 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002881/0.367, allocations: 160.6 kB / 410.8 MB, free: 21.59 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.367, allocations: 4.125 kB / 410.8 MB, free: 21.59 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.382e-05/0.367, allocations: 31.97 kB / 410.8 MB, free: 21.55 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000474/0.3675, allocations: 121 kB / 411 MB, free: 21.44 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000718/0.3683, allocations: 0.6786 MB / 411.6 MB, free: 20.71 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001954/0.3685, allocations: 0.7794 MB / 412.4 MB, free: 19.91 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.303e-05/0.3686, allocations: 30.3 kB / 412.5 MB, free: 19.88 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.482e-05/0.3686, allocations: 31.36 kB / 412.5 MB, free: 19.85 MB / 298.7 MB Notification: Performance of SimCode: time 4.11e-07/0.3686, allocations: 0 / 412.5 MB, free: 19.85 MB / 298.7 MB Notification: Performance of Templates: time 0.006173/0.3748, allocations: 3.449 MB / 415.9 MB, free: 16.43 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches