Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/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_cpp_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_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001544/0.001544, allocations: 191.7 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.53/1.53, allocations: 226.5 MB / 244.7 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000734/0.0007343, allocations: 104.5 kB / 296.8 MB, free: 6.703 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002432/0.0002432, allocations: 8 kB / 356.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2585/0.2588, allocations: 51.3 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.002136/0.261, allocations: 1.649 MB / 409.7 MB, free: 26.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001706/0.2627, allocations: 1.242 MB / 410.9 MB, free: 24.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001297/0.2629, allocations: 0 / 410.9 MB, free: 24.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000323/0.2632, allocations: 64.86 kB / 411 MB, free: 24.73 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002773/0.2635, allocations: 107.6 kB / 411.1 MB, free: 24.63 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006998/0.2642, allocations: 264.3 kB / 411.4 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002087/0.2644, allocations: 188.2 kB / 411.6 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001402/0.2646, allocations: 50.95 kB / 411.6 MB, free: 24.15 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.421e-05/0.2647, allocations: 76.27 kB / 411.7 MB, free: 24.08 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001199/0.2648, allocations: 96.42 kB / 411.8 MB, free: 23.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.301e-05/0.2648, allocations: 4 kB / 411.8 MB, free: 23.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001186/0.265, allocations: 51.92 kB / 411.8 MB, free: 23.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.378e-05/0.265, allocations: 60.8 kB / 411.9 MB, free: 23.87 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.863e-05/0.2651, allocations: 105.1 kB / 412 MB, free: 23.76 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002137/0.2654, allocations: 217.1 kB / 412.2 MB, free: 23.55 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.2654, allocations: 0 / 412.2 MB, free: 23.55 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2654, allocations: 3.719 kB / 412.2 MB, free: 23.55 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.209e-06/0.2654, allocations: 3.938 kB / 412.2 MB, free: 23.55 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.0007137/0.2661, allocations: 0.5351 MB / 412.7 MB, free: 22.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.2662, allocations: 12.03 kB / 412.8 MB, free: 22.95 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.063e-05/0.2662, allocations: 28.56 kB / 412.8 MB, free: 22.92 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003125/0.2665, allocations: 315.4 kB / 413.1 MB, free: 22.57 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.454e-05/0.2666, allocations: 12.36 kB / 413.1 MB, free: 22.56 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.336e-05/0.2666, allocations: 24.12 kB / 413.1 MB, free: 22.54 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004852/0.2671, allocations: 312.8 kB / 413.4 MB, free: 22.2 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.2671, allocations: 4 kB / 413.4 MB, free: 22.2 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.724e-05/0.2671, allocations: 4 kB / 413.4 MB, free: 22.2 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.2672, allocations: 4 kB / 413.4 MB, free: 22.19 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001524/0.2673, allocations: 67.89 kB / 413.5 MB, free: 22.12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004538/0.2678, allocations: 422.3 kB / 413.9 MB, free: 21.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003019/0.2681, allocations: 192 kB / 414.1 MB, free: 21.44 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001299/0.2682, allocations: 98.53 kB / 414.2 MB, free: 21.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.185e-05/0.2683, allocations: 4 kB / 414.2 MB, free: 21.33 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000149/0.2684, allocations: 79.31 kB / 414.3 MB, free: 21.24 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.783e-06/0.2684, allocations: 0 / 414.3 MB, free: 21.24 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004675/0.2689, allocations: 253.1 kB / 414.5 MB, free: 20.99 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.557e-05/0.269, allocations: 166.4 kB / 414.7 MB, free: 20.79 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002668/0.2693, allocations: 358.8 kB / 415 MB, free: 20.43 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/0.2693, allocations: 33.7 kB / 415.1 MB, free: 20.39 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.195e-05/0.2694, allocations: 128.7 kB / 415.2 MB, free: 20.26 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.96e-05/0.2694, allocations: 35.69 kB / 415.2 MB, free: 20.23 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.247e-06/0.2694, allocations: 4 kB / 415.2 MB, free: 20.22 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.263e-05/0.2695, allocations: 346.8 kB / 415.6 MB, free: 19.88 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.114e-05/0.2696, allocations: 40.45 kB / 415.6 MB, free: 19.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001328/0.2697, allocations: 187.2 kB / 415.8 MB, free: 19.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002268/0.2699, allocations: 207.2 kB / 416 MB, free: 19.33 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.2699, allocations: 4 kB / 416 MB, free: 19.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003037/0.2703, allocations: 236.9 kB / 416.2 MB, free: 19.09 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.2703, allocations: 11.94 kB / 416.3 MB, free: 19.08 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.2703, allocations: 4 kB / 416.3 MB, free: 19.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.2703, allocations: 4 kB / 416.3 MB, free: 19.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001358/0.2705, allocations: 39.92 kB / 416.3 MB, free: 19.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.2705, allocations: 12.45 kB / 416.3 MB, free: 19.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001098/0.2706, allocations: 23.84 kB / 416.3 MB, free: 19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.48e-05/0.2706, allocations: 12 kB / 416.3 MB, free: 18.98 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001404/0.2708, allocations: 184 kB / 416.5 MB, free: 18.8 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000161/0.2709, allocations: 137.3 kB / 416.7 MB, free: 18.66 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.949e-05/0.271, allocations: 33.78 kB / 416.7 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.271, allocations: 0 / 416.7 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.271, allocations: 7.938 kB / 416.7 MB, free: 18.61 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.271, allocations: 4 kB / 416.7 MB, free: 18.61 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001652/0.2712, allocations: 273.7 kB / 417 MB, free: 18.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.2712, allocations: 4 kB / 417 MB, free: 18.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001117/0.2713, allocations: 27.97 kB / 417 MB, free: 18.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.2713, allocations: 4 kB / 417 MB, free: 18.26 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.612e-05/0.2714, allocations: 4 kB / 417 MB, free: 18.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.097e-06/0.2714, allocations: 7.938 kB / 417 MB, free: 18.25 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.2714, allocations: 3.938 kB / 417 MB, free: 18.24 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003027/0.2717, allocations: 241.2 kB / 417.3 MB, free: 17.98 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.825e-05/0.2718, allocations: 132.6 kB / 417.4 MB, free: 17.84 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.773e-05/0.2718, allocations: 8 kB / 417.4 MB, free: 17.83 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.021e-05/0.2719, allocations: 8 kB / 417.4 MB, free: 17.82 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.569e-05/0.272, allocations: 15.92 kB / 417.4 MB, free: 17.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.273e-05/0.272, allocations: 8 kB / 417.4 MB, free: 17.8 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001918/0.2722, allocations: 253.9 kB / 417.7 MB, free: 17.54 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2722, allocations: 0 / 417.7 MB, free: 17.54 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003028/0.2725, allocations: 55.98 kB / 417.7 MB, free: 17.49 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008985/0.2734, allocations: 430.6 kB / 418.1 MB, free: 17.2 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002802/0.2737, allocations: 144.8 kB / 418.3 MB, free: 17.06 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.2737, allocations: 8.062 kB / 418.3 MB, free: 17.05 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.221e-05/0.2738, allocations: 35.91 kB / 418.3 MB, free: 17.02 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000494/0.2743, allocations: 123 kB / 418.5 MB, free: 16.9 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007073/0.275, allocations: 0.5225 MB / 419 MB, free: 16.34 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002088/0.2752, allocations: 0.7716 MB / 419.7 MB, free: 15.54 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.119e-05/0.2753, allocations: 27.42 kB / 419.8 MB, free: 15.51 MB / 298.7 MB Notification: Performance of SimCode: time 3e-07/0.2753, allocations: 0 / 419.8 MB, free: 15.51 MB / 298.7 MB Notification: Performance of Templates: time 0.004794/0.2801, allocations: 3.624 MB / 423.4 MB, free: 11.89 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches