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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001276/0.001275, allocations: 106.8 kB / 16.92 MB, free: 5.773 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 191.3 kB / 17.85 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.508/1.508, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001695/0.001696, allocations: 44.16 kB / 300.6 MB, free: 5.871 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1319, allocations: 49.45 MB / 350.1 MB, free: 4.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.00401/0.136, allocations: 1.947 MB / 352 MB, free: 2.441 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00209/0.1381, allocations: 1.196 MB / 353.2 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001576/0.1382, allocations: 7.938 kB / 353.2 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003457/0.1386, allocations: 71.59 kB / 353.3 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002877/0.1389, allocations: 91.59 kB / 353.4 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009019/0.1398, allocations: 309.8 kB / 353.7 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002963/0.1401, allocations: 207.4 kB / 353.9 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.1403, allocations: 49.66 kB / 353.9 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001185/0.1404, allocations: 91.62 kB / 354 MB, free: 444 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002543/0.1407, allocations: 99.59 kB / 354.1 MB, free: 344 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.775e-05/0.1407, allocations: 12 kB / 354.1 MB, free: 332 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001726/0.1409, allocations: 71.89 kB / 354.2 MB, free: 260 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001042/0.141, allocations: 63.77 kB / 354.3 MB, free: 196 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001123/0.1411, allocations: 103.3 kB / 354.4 MB, free: 92 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000427/0.1416, allocations: 283.4 kB / 354.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1416, allocations: 0 / 354.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.362e-06/0.1416, allocations: 4 kB / 354.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.1416, allocations: 3.938 kB / 354.6 MB, free: 15.8 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0009216/0.1425, allocations: 0.5778 MB / 355.2 MB, free: 15.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.1426, allocations: 8.031 kB / 355.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.655e-05/0.1427, allocations: 28.66 kB / 355.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003736/0.143, allocations: 311.3 kB / 355.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.231e-05/0.1431, allocations: 12.38 kB / 355.6 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.456e-05/0.1431, allocations: 16.12 kB / 355.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005721/0.1437, allocations: 329.4 kB / 355.9 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.148e-06/0.1437, allocations: 0 / 355.9 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.083e-05/0.1437, allocations: 4 kB / 355.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.1437, allocations: 3.984 kB / 355.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001755/0.1439, allocations: 67.91 kB / 356 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005354/0.1445, allocations: 426.2 kB / 356.4 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003576/0.1448, allocations: 195.9 kB / 356.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001518/0.145, allocations: 94.52 kB / 356.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.023e-05/0.145, allocations: 8 kB / 356.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001684/0.1452, allocations: 83.31 kB / 356.8 MB, free: 13.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.593e-06/0.1452, allocations: 0 / 356.8 MB, free: 13.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005387/0.1458, allocations: 257.3 kB / 357 MB, free: 13.19 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000127/0.1459, allocations: 170.2 kB / 357.2 MB, free: 12.99 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003442/0.1463, allocations: 342.9 kB / 357.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.032e-05/0.1463, allocations: 33.7 kB / 357.6 MB, free: 12.6 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.1464, allocations: 128.7 kB / 357.7 MB, free: 12.47 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.532e-05/0.1464, allocations: 31.7 kB / 357.7 MB, free: 12.44 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.032e-05/0.1465, allocations: 49.94 kB / 357.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.1467, allocations: 342.8 kB / 358.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.963e-05/0.1468, allocations: 44.44 kB / 358.1 MB, free: 12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001856/0.147, allocations: 188 kB / 358.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002695/0.1472, allocations: 211.4 kB / 358.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.1473, allocations: 0 / 358.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003603/0.1476, allocations: 245.1 kB / 358.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.1476, allocations: 8 kB / 358.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.1477, allocations: 7.984 kB / 358.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.1477, allocations: 4 kB / 358.8 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001474/0.1478, allocations: 39.92 kB / 358.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.1479, allocations: 7.938 kB / 358.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001111/0.148, allocations: 19.84 kB / 358.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.133e-05/0.148, allocations: 19.94 kB / 358.9 MB, free: 11.14 MB / 302.1 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.0001702/0.1482, allocations: 180.2 kB / 359 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002051/0.1484, allocations: 137.7 kB / 359.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.942e-05/0.1485, allocations: 25.84 kB / 359.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.1485, allocations: 11.92 kB / 359.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.902e-06/0.1485, allocations: 3.938 kB / 359.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.1485, allocations: 4 kB / 359.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002151/0.1487, allocations: 265.4 kB / 359.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1487, allocations: 0 / 359.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001175/0.1488, allocations: 31.98 kB / 359.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.7e-05/0.1489, allocations: 0 / 359.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.811e-05/0.1489, allocations: 11.94 kB / 359.5 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.582e-06/0.1489, allocations: 0 / 359.5 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.1489, allocations: 7.938 kB / 359.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003664/0.1493, allocations: 241.4 kB / 359.8 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001078/0.1494, allocations: 132.6 kB / 359.9 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.407e-05/0.1495, allocations: 11.98 kB / 359.9 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.965e-05/0.1495, allocations: 4 kB / 359.9 MB, free: 9.988 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.074e-05/0.1496, allocations: 15.92 kB / 359.9 MB, free: 9.973 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.929e-05/0.1496, allocations: 8.062 kB / 359.9 MB, free: 9.965 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002598/0.1499, allocations: 253.9 kB / 360.2 MB, free: 9.715 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1499, allocations: 3.938 kB / 360.2 MB, free: 9.711 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003036/0.1502, allocations: 48 kB / 360.2 MB, free: 9.664 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: 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.0009933/0.1512, allocations: 433.7 kB / 360.7 MB, free: 9.387 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003824/0.1516, allocations: 167.7 kB / 360.8 MB, free: 9.223 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1516, allocations: 1.062 kB / 360.8 MB, free: 9.223 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.91e-05/0.1517, allocations: 23.98 kB / 360.9 MB, free: 9.199 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004839/0.1522, allocations: 131.3 kB / 361 MB, free: 9.078 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007549/0.153, allocations: 466 kB / 361.4 MB, free: 8.594 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003696/0.1533, allocations: 0.7675 MB / 362.2 MB, free: 7.797 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.333e-05/0.1534, allocations: 38.5 kB / 362.2 MB, free: 7.758 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.302e-05/0.1535, allocations: 31.42 kB / 362.3 MB, free: 7.727 MB / 302.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1535, allocations: 0 / 362.3 MB, free: 7.727 MB / 302.1 MB Notification: Performance of Templates: time 0.007193/0.1607, allocations: 3.483 MB / 365.8 MB, free: 4.27 MB / 302.1 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches