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.001326/0.001326, allocations: 103.7 kB / 17.71 MB, free: 5.367 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.001303/0.001303, allocations: 187.7 kB / 18.64 MB, free: 4.445 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.434/1.434, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001033/0.001033, allocations: 55.91 kB / 351.9 MB, free: 3.289 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2358/0.2368, allocations: 49.43 MB / 401.3 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003383/0.2402, allocations: 1.963 MB / 403.3 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001882/0.2421, allocations: 1.196 MB / 404.5 MB, free: 5.734 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000132/0.2423, allocations: 7.938 kB / 404.5 MB, free: 5.727 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003118/0.2426, allocations: 75.61 kB / 404.6 MB, free: 5.652 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002597/0.2429, allocations: 95.58 kB / 404.7 MB, free: 5.559 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008217/0.2437, allocations: 299 kB / 405 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002437/0.244, allocations: 211.4 kB / 405.2 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.2441, allocations: 45.61 kB / 405.2 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001094/0.2442, allocations: 91.62 kB / 405.3 MB, free: 4.926 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001437/0.2444, allocations: 107.5 kB / 405.4 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.006e-05/0.2444, allocations: 20 kB / 405.4 MB, free: 4.801 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001448/0.2446, allocations: 71.89 kB / 405.5 MB, free: 4.73 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.417e-05/0.2447, allocations: 67.81 kB / 405.6 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.753e-05/0.2448, allocations: 91.36 kB / 405.7 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003373/0.2451, allocations: 296.1 kB / 406 MB, free: 4.289 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.2451, allocations: 0 / 406 MB, free: 4.289 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.2451, allocations: 3.938 kB / 406 MB, free: 4.285 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.2451, allocations: 0 / 406 MB, free: 4.285 MB / 318.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.0008616/0.246, allocations: 0.574 MB / 406.5 MB, free: 3.656 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.2461, allocations: 19.89 kB / 406.6 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.622e-05/0.2461, allocations: 28.56 kB / 406.6 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004215/0.2466, allocations: 307.5 kB / 406.9 MB, free: 3.273 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.877e-05/0.2466, allocations: 12.38 kB / 406.9 MB, free: 3.262 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.813e-05/0.2466, allocations: 16.12 kB / 406.9 MB, free: 3.246 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000621/0.2472, allocations: 331.8 kB / 407.2 MB, free: 2.895 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.2473, allocations: 0 / 407.2 MB, free: 2.895 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.735e-05/0.2473, allocations: 3.938 kB / 407.2 MB, free: 2.891 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.2473, allocations: 4 kB / 407.2 MB, free: 2.887 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001744/0.2475, allocations: 71.89 kB / 407.3 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005104/0.248, allocations: 414.2 kB / 407.7 MB, free: 2.355 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003538/0.2484, allocations: 200 kB / 407.9 MB, free: 2.133 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001824/0.2486, allocations: 94.53 kB / 408 MB, free: 2.031 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.533e-05/0.2486, allocations: 0 / 408 MB, free: 2.031 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001629/0.2488, allocations: 91.31 kB / 408.1 MB, free: 1.93 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.603e-06/0.2488, allocations: 0 / 408.1 MB, free: 1.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005623/0.2493, allocations: 249.4 kB / 408.3 MB, free: 1.68 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.779e-05/0.2495, allocations: 174.1 kB / 408.5 MB, free: 1.473 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003603/0.2498, allocations: 343 kB / 408.8 MB, free: 1.129 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.363e-05/0.2499, allocations: 33.7 kB / 408.9 MB, free: 1.09 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.083e-05/0.25, allocations: 132.6 kB / 409 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.399e-05/0.25, allocations: 31.64 kB / 409 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.863e-05/0.2501, allocations: 49.94 kB / 409.1 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.2502, allocations: 346.7 kB / 409.4 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.401e-05/0.2503, allocations: 40.45 kB / 409.5 MB, free: 488 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001765/0.2505, allocations: 193.2 kB / 409.6 MB, free: 232 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003194/0.2508, allocations: 211.2 kB / 409.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.2508, allocations: 0 / 409.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003655/0.2512, allocations: 237.4 kB / 410.1 MB, free: 15.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.2512, allocations: 8 kB / 410.1 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.2512, allocations: 4 kB / 410.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.397e-05/0.2513, allocations: 8 kB / 410.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001487/0.2514, allocations: 35.92 kB / 410.1 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/0.2514, allocations: 7.938 kB / 410.1 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000116/0.2516, allocations: 28.14 kB / 410.2 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.803e-05/0.2516, allocations: 16 kB / 410.2 MB, free: 15.62 MB / 334.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.0001731/0.2518, allocations: 172.1 kB / 410.4 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002038/0.252, allocations: 149.1 kB / 410.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.448e-05/0.2521, allocations: 33.73 kB / 410.5 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.2521, allocations: 0 / 410.5 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.2521, allocations: 8.25 kB / 410.5 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.2521, allocations: 0 / 410.5 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002392/0.2523, allocations: 269.4 kB / 410.8 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.2523, allocations: 4 kB / 410.8 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000124/0.2525, allocations: 23.98 kB / 410.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.2525, allocations: 7.938 kB / 410.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.52e-05/0.2525, allocations: 8 kB / 410.9 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.449e-06/0.2525, allocations: 7.984 kB / 410.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.2525, allocations: 3.938 kB / 410.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003661/0.2529, allocations: 238.3 kB / 411.1 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001065/0.253, allocations: 120.8 kB / 411.2 MB, free: 14.49 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.879e-05/0.2531, allocations: 8 kB / 411.2 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.766e-05/0.2532, allocations: 12 kB / 411.2 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.077e-05/0.2532, allocations: 11.92 kB / 411.2 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.269e-05/0.2532, allocations: 12.05 kB / 411.3 MB, free: 14.45 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000224/0.2535, allocations: 249.9 kB / 411.5 MB, free: 14.21 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2535, allocations: 0 / 411.5 MB, free: 14.21 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003147/0.2538, allocations: 59.92 kB / 411.6 MB, free: 14.15 MB / 334.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.0009473/0.2548, allocations: 429.2 kB / 412 MB, free: 13.88 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000328/0.2551, allocations: 159.6 kB / 412.1 MB, free: 13.72 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2551, allocations: 0 / 412.1 MB, free: 13.72 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.143e-05/0.2552, allocations: 29.05 kB / 412.2 MB, free: 13.7 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005181/0.2557, allocations: 129.9 kB / 412.3 MB, free: 13.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00071/0.2564, allocations: 496 kB / 412.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003098/0.2568, allocations: 0.7676 MB / 413.5 MB, free: 12.25 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.876e-05/0.2568, allocations: 31.42 kB / 413.6 MB, free: 12.21 MB / 334.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2568, allocations: 3.938 kB / 413.6 MB, free: 12.21 MB / 334.1 MB Notification: Performance of Templates: time 0.006001/0.2628, allocations: 3.602 MB / 417.2 MB, free: 8.621 MB / 334.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins1/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