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.001154/0.001154, allocations: 112.2 kB / 17.74 MB, free: 5.355 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.001113/0.001114, allocations: 187.1 kB / 18.67 MB, free: 4.434 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.356/1.356, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001006/0.001006, allocations: 47.92 kB / 352 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2552/0.2562, allocations: 49.43 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003398/0.2596, allocations: 1.955 MB / 403.4 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00195/0.2616, allocations: 1.192 MB / 404.5 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001377/0.2618, allocations: 4 kB / 404.6 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003197/0.2621, allocations: 71.59 kB / 404.6 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002813/0.2624, allocations: 99.52 kB / 404.7 MB, free: 5.539 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008805/0.2633, allocations: 306 kB / 405 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002754/0.2636, allocations: 207.5 kB / 405.2 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001489/0.2637, allocations: 53.64 kB / 405.3 MB, free: 4.988 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001312/0.2639, allocations: 95.61 kB / 405.4 MB, free: 4.895 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001525/0.264, allocations: 103.5 kB / 405.5 MB, free: 4.793 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.387e-05/0.2641, allocations: 12 kB / 405.5 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001724/0.2643, allocations: 71.95 kB / 405.5 MB, free: 4.711 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.739e-05/0.2644, allocations: 75.75 kB / 405.6 MB, free: 4.637 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.626e-05/0.2645, allocations: 99.28 kB / 405.7 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003758/0.2648, allocations: 288.1 kB / 406 MB, free: 4.262 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/0.2649, allocations: 7.984 kB / 406 MB, free: 4.254 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2649, allocations: 4 kB / 406 MB, free: 4.25 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.2649, allocations: 0 / 406 MB, free: 4.25 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.0008548/0.2657, allocations: 0.5739 MB / 406.6 MB, free: 3.621 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.2658, allocations: 11.89 kB / 406.6 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.875e-05/0.2659, allocations: 32.56 kB / 406.6 MB, free: 3.578 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003843/0.2662, allocations: 307.5 kB / 406.9 MB, free: 3.242 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.085e-05/0.2663, allocations: 16.31 kB / 406.9 MB, free: 3.227 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.052e-05/0.2663, allocations: 20.11 kB / 407 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006012/0.2669, allocations: 319.4 kB / 407.3 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.779e-05/0.2669, allocations: 3.984 kB / 407.3 MB, free: 2.867 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.594e-05/0.267, allocations: 11.94 kB / 407.3 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.267, allocations: 0 / 407.3 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000169/0.2672, allocations: 67.91 kB / 407.4 MB, free: 2.789 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000542/0.2677, allocations: 414.3 kB / 407.8 MB, free: 2.328 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003719/0.2681, allocations: 204 kB / 408 MB, free: 2.102 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001508/0.2683, allocations: 90.53 kB / 408.1 MB, free: 2.004 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.572e-05/0.2683, allocations: 4 kB / 408.1 MB, free: 2 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001619/0.2685, allocations: 79.31 kB / 408.1 MB, free: 1.91 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.704e-06/0.2685, allocations: 8 kB / 408.1 MB, free: 1.902 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005342/0.269, allocations: 245.2 kB / 408.4 MB, free: 1.656 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/0.2691, allocations: 174.1 kB / 408.5 MB, free: 1.449 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003272/0.2695, allocations: 339 kB / 408.9 MB, free: 1.109 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.697e-05/0.2695, allocations: 37.64 kB / 408.9 MB, free: 1.066 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/0.2696, allocations: 132.7 kB / 409 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.82e-05/0.2697, allocations: 39.62 kB / 409.1 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.529e-05/0.2697, allocations: 53.94 kB / 409.1 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.2699, allocations: 342.8 kB / 409.5 MB, free: 496 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.309e-05/0.27, allocations: 40.44 kB / 409.5 MB, free: 456 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001848/0.2702, allocations: 191.6 kB / 409.7 MB, free: 200 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002739/0.2705, allocations: 211.6 kB / 409.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.2705, allocations: 0 / 409.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003809/0.2709, allocations: 240.9 kB / 410.1 MB, free: 15.69 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.2709, allocations: 8 kB / 410.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.2709, allocations: 4 kB / 410.2 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.2709, allocations: 4 kB / 410.2 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001604/0.2711, allocations: 40.45 kB / 410.2 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.2711, allocations: 11.94 kB / 410.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001146/0.2712, allocations: 20.22 kB / 410.2 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.938e-05/0.2713, allocations: 19.98 kB / 410.2 MB, free: 15.58 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.0001564/0.2714, allocations: 172 kB / 410.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002573/0.2717, allocations: 145.2 kB / 410.6 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.294e-05/0.2718, allocations: 29.73 kB / 410.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.872e-06/0.2718, allocations: 4 kB / 410.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.308e-06/0.2718, allocations: 11.88 kB / 410.6 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.2718, allocations: 4 kB / 410.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004222/0.2722, allocations: 265.5 kB / 410.9 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.2722, allocations: 0 / 410.9 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001266/0.2724, allocations: 27.98 kB / 410.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/0.2724, allocations: 0 / 410.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.78e-05/0.2724, allocations: 8 kB / 410.9 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.2724, allocations: 0 / 410.9 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.2724, allocations: 3.938 kB / 410.9 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004398/0.2729, allocations: 251.6 kB / 411.1 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001185/0.273, allocations: 124.8 kB / 411.3 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.219e-05/0.273, allocations: 11.94 kB / 411.3 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.836e-05/0.2731, allocations: 8.062 kB / 411.3 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.456e-05/0.2732, allocations: 15.92 kB / 411.3 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.013e-05/0.2732, allocations: 4 kB / 411.3 MB, free: 14.42 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002313/0.2735, allocations: 249.9 kB / 411.6 MB, free: 14.17 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2735, allocations: 4 kB / 411.6 MB, free: 14.17 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003336/0.2738, allocations: 51.94 kB / 411.6 MB, free: 14.12 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.0009655/0.2748, allocations: 436.3 kB / 412 MB, free: 13.84 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003631/0.2752, allocations: 152.5 kB / 412.2 MB, free: 13.7 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.2752, allocations: 0 / 412.2 MB, free: 13.7 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.974e-05/0.2753, allocations: 31.92 kB / 412.2 MB, free: 13.66 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005148/0.2758, allocations: 123.3 kB / 412.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008218/0.2766, allocations: 488.1 kB / 412.8 MB, free: 13.02 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004842/0.2771, allocations: 0.7718 MB / 413.6 MB, free: 12.22 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.445e-05/0.2772, allocations: 31.44 kB / 413.6 MB, free: 12.19 MB / 334.1 MB Notification: Performance of SimCode: time 1.833e-06/0.2772, allocations: 3.938 kB / 413.6 MB, free: 12.19 MB / 334.1 MB Notification: Performance of Templates: time 0.006959/0.2842, allocations: 3.637 MB / 417.3 MB, free: 8.559 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