Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001955/0.001955, allocations: 200.7 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 229.5 MB / 247.7 MB, free: 6.34 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009325/0.0009325, allocations: 100.1 kB / 299.9 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002959/0.0002959, allocations: 8 kB / 360.6 MB, free: 8.488 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2567/0.257, allocations: 51.42 MB / 412.1 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.002152/0.2592, allocations: 1.653 MB / 413.7 MB, free: 24.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002089/0.2613, allocations: 1.937 MB / 415.6 MB, free: 22.14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002075/0.2616, allocations: 7.875 kB / 415.7 MB, free: 22.14 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005594/0.2622, allocations: 71.72 kB / 415.7 MB, free: 22.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004704/0.2627, allocations: 109.2 kB / 415.8 MB, free: 21.96 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001213/0.2639, allocations: 275.5 kB / 416.1 MB, free: 21.7 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003442/0.2642, allocations: 207.4 kB / 416.3 MB, free: 21.49 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002107/0.2645, allocations: 60.25 kB / 416.4 MB, free: 21.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001434/0.2646, allocations: 75.64 kB / 416.4 MB, free: 21.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001838/0.2648, allocations: 103.5 kB / 416.5 MB, free: 21.26 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.887e-05/0.2648, allocations: 4 kB / 416.5 MB, free: 21.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001945/0.265, allocations: 47.98 kB / 416.6 MB, free: 21.21 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001266/0.2652, allocations: 59.75 kB / 416.6 MB, free: 21.15 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001567/0.2653, allocations: 117 kB / 416.8 MB, free: 21.03 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004258/0.2658, allocations: 280.5 kB / 417 MB, free: 20.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.858e-06/0.2658, allocations: 0 / 417 MB, free: 20.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.2658, allocations: 3.938 kB / 417 MB, free: 20.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.2658, allocations: 4 kB / 417 MB, free: 20.75 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.001085/0.2669, allocations: 0.5313 MB / 417.6 MB, free: 20.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.621e-05/0.267, allocations: 8.031 kB / 417.6 MB, free: 20.15 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001368/0.2671, allocations: 32.56 kB / 417.6 MB, free: 20.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004307/0.2676, allocations: 311.3 kB / 417.9 MB, free: 19.78 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.08e-05/0.2676, allocations: 12.38 kB / 417.9 MB, free: 19.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.95e-05/0.2677, allocations: 16.12 kB / 417.9 MB, free: 19.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006082/0.2683, allocations: 322 kB / 418.3 MB, free: 19.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.2683, allocations: 3.938 kB / 418.3 MB, free: 19.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.937e-05/0.2683, allocations: 4 kB / 418.3 MB, free: 19.4 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.241e-05/0.2683, allocations: 4 kB / 418.3 MB, free: 19.4 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001558/0.2685, allocations: 67.95 kB / 418.3 MB, free: 19.33 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005547/0.2691, allocations: 418.2 kB / 418.7 MB, free: 18.87 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003461/0.2694, allocations: 192 kB / 418.9 MB, free: 18.65 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001392/0.2696, allocations: 94.53 kB / 419 MB, free: 18.55 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.256e-05/0.2696, allocations: 8.172 kB / 419 MB, free: 18.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001734/0.2698, allocations: 83.36 kB / 419.1 MB, free: 18.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.854e-06/0.2698, allocations: 0 / 419.1 MB, free: 18.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004877/0.2703, allocations: 253 kB / 419.4 MB, free: 18.2 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.468e-05/0.2704, allocations: 166.2 kB / 419.5 MB, free: 18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002946/0.2707, allocations: 362.8 kB / 419.9 MB, free: 17.63 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.822e-05/0.2707, allocations: 29.7 kB / 419.9 MB, free: 17.6 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.759e-05/0.2708, allocations: 128.7 kB / 420 MB, free: 17.47 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.172e-05/0.2709, allocations: 27.7 kB / 420.1 MB, free: 17.44 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.726e-06/0.2709, allocations: 11.94 kB / 420.1 MB, free: 17.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.647e-05/0.271, allocations: 342.7 kB / 420.4 MB, free: 17.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.448e-05/0.2711, allocations: 44.39 kB / 420.4 MB, free: 17.04 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001325/0.2712, allocations: 182.9 kB / 420.6 MB, free: 16.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000199/0.2714, allocations: 211.4 kB / 420.8 MB, free: 16.54 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.2714, allocations: 0 / 420.8 MB, free: 16.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000306/0.2717, allocations: 245 kB / 421.1 MB, free: 16.29 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.2718, allocations: 4 kB / 421.1 MB, free: 16.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.2718, allocations: 4 kB / 421.1 MB, free: 16.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.003e-05/0.2718, allocations: 8 kB / 421.1 MB, free: 16.28 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001383/0.2719, allocations: 35.92 kB / 421.1 MB, free: 16.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.393e-05/0.272, allocations: 11.88 kB / 421.1 MB, free: 16.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001066/0.2721, allocations: 23.83 kB / 421.2 MB, free: 16.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.441e-05/0.2721, allocations: 12.38 kB / 421.2 MB, free: 16.2 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,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.000149/0.2723, allocations: 180 kB / 421.3 MB, free: 16.01 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001707/0.2724, allocations: 141.3 kB / 421.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.588e-05/0.2725, allocations: 33.78 kB / 421.5 MB, free: 15.83 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.2725, allocations: 4 kB / 421.5 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.2725, allocations: 3.938 kB / 421.5 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.2725, allocations: 0 / 421.5 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001896/0.2727, allocations: 269.4 kB / 421.8 MB, free: 15.51 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2728, allocations: 4 kB / 421.8 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001216/0.2729, allocations: 31.92 kB / 421.8 MB, free: 15.47 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.2729, allocations: 0 / 421.8 MB, free: 15.47 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.2729, allocations: 12.45 kB / 421.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.325e-06/0.2729, allocations: 0 / 421.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.2729, allocations: 3.938 kB / 421.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000323/0.2733, allocations: 252.9 kB / 422.1 MB, free: 15.19 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.078e-05/0.2734, allocations: 128.6 kB / 422.2 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.17e-05/0.2734, allocations: 11.98 kB / 422.2 MB, free: 15.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.077e-05/0.2735, allocations: 8 kB / 422.2 MB, free: 15.02 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.655e-05/0.2736, allocations: 11.92 kB / 422.2 MB, free: 15.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.406e-05/0.2736, allocations: 8.062 kB / 422.3 MB, free: 15 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001972/0.2738, allocations: 253.9 kB / 422.5 MB, free: 14.75 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2738, allocations: 0 / 422.5 MB, free: 14.75 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002955/0.2741, allocations: 52 kB / 422.5 MB, free: 14.7 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.001063/0.2752, allocations: 499.5 kB / 423 MB, free: 14.33 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002974/0.2755, allocations: 152.6 kB / 423.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.2755, allocations: 0 / 423.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.557e-05/0.2756, allocations: 36.11 kB / 423.2 MB, free: 14.15 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005136/0.2761, allocations: 112.8 kB / 423.3 MB, free: 14.04 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009338/0.277, allocations: 0.5223 MB / 423.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002776/0.2773, allocations: 0.7793 MB / 424.6 MB, free: 12.68 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001371/0.2775, allocations: 38.77 kB / 424.7 MB, free: 12.64 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.016e-05/0.2776, allocations: 27.42 kB / 424.7 MB, free: 12.61 MB / 298.7 MB Notification: Performance of SimCode: time 2.7e-07/0.2776, allocations: 0 / 424.7 MB, free: 12.61 MB / 298.7 MB Notification: Performance of Templates: time 0.006946/0.2845, allocations: 3.33 MB / 428 MB, free: 9.301 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches