Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009926/0.0009926, allocations: 195.9 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 226.6 MB / 244.3 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007955/0.0007956, allocations: 90.02 kB / 296.4 MB, free: 6.785 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002328/0.0002328, allocations: 7.984 kB / 356.2 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2625/0.2628, allocations: 51.3 MB / 407.5 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.001884/0.2647, allocations: 1.606 MB / 409.1 MB, free: 26.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00132/0.2661, allocations: 1.149 MB / 410.3 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000113/0.2662, allocations: 3.938 kB / 410.3 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005076/0.2667, allocations: 139.6 kB / 410.4 MB, free: 24.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002454/0.267, allocations: 129.6 kB / 410.5 MB, free: 24.78 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003906/0.2674, allocations: 176.7 kB / 410.7 MB, free: 24.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001617/0.2675, allocations: 179.5 kB / 410.9 MB, free: 24.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.2676, allocations: 30.58 kB / 410.9 MB, free: 24.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.311e-05/0.2677, allocations: 71.62 kB / 411 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.163e-05/0.2678, allocations: 64.48 kB / 411 MB, free: 24.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.011e-05/0.2678, allocations: 0 / 411 MB, free: 24.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.898e-05/0.2679, allocations: 48.59 kB / 411.1 MB, free: 24.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.627e-05/0.268, allocations: 31.91 kB / 411.1 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.084e-05/0.268, allocations: 54.36 kB / 411.2 MB, free: 24.14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001623/0.2682, allocations: 168.6 kB / 411.3 MB, free: 23.97 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.2682, allocations: 0.5 kB / 411.3 MB, free: 23.97 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2682, allocations: 0.6875 kB / 411.3 MB, free: 23.97 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.2682, allocations: 0 / 411.3 MB, free: 23.97 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005746/0.2688, allocations: 0.4932 MB / 411.8 MB, free: 23.43 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.074e-05/0.2689, allocations: 10.19 kB / 411.8 MB, free: 23.42 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.429e-05/0.2689, allocations: 23.72 kB / 411.9 MB, free: 23.39 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002556/0.2692, allocations: 265.6 kB / 412.1 MB, free: 23.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.822e-05/0.2692, allocations: 4 kB / 412.1 MB, free: 23.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.718e-05/0.2692, allocations: 8 kB / 412.1 MB, free: 23.08 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002807/0.2695, allocations: 181.3 kB / 412.3 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.2695, allocations: 3.984 kB / 412.3 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/0.2696, allocations: 15.88 kB / 412.3 MB, free: 22.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.2696, allocations: 0 / 412.3 MB, free: 22.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.193e-05/0.2697, allocations: 39.92 kB / 412.4 MB, free: 22.82 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003791/0.27, allocations: 371.3 kB / 412.7 MB, free: 22.4 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001817/0.2702, allocations: 134.5 kB / 412.9 MB, free: 22.23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.322e-05/0.2703, allocations: 55.42 kB / 412.9 MB, free: 22.17 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.687e-05/0.2704, allocations: 7.984 kB / 412.9 MB, free: 22.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001286/0.2705, allocations: 75.23 kB / 413 MB, free: 22.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.673e-06/0.2705, allocations: 0 / 413 MB, free: 22.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003051/0.2708, allocations: 157.6 kB / 413.1 MB, free: 21.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.811e-05/0.2709, allocations: 166.1 kB / 413.3 MB, free: 21.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002098/0.2711, allocations: 286.5 kB / 413.6 MB, free: 21.43 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.256e-05/0.2711, allocations: 29.7 kB / 413.6 MB, free: 21.39 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.064e-05/0.2712, allocations: 120.4 kB / 413.7 MB, free: 21.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.771e-05/0.2712, allocations: 16.19 kB / 413.8 MB, free: 21.25 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.228e-06/0.2712, allocations: 4 kB / 413.8 MB, free: 21.25 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.941e-05/0.2713, allocations: 334.8 kB / 414.1 MB, free: 20.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.517e-05/0.2713, allocations: 20 kB / 414.1 MB, free: 20.89 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.971e-05/0.2714, allocations: 87.64 kB / 414.2 MB, free: 20.78 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.086e-05/0.2715, allocations: 32.03 kB / 414.2 MB, free: 20.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.2715, allocations: 0 / 414.2 MB, free: 20.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001719/0.2716, allocations: 121.5 kB / 414.3 MB, free: 20.62 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.087e-05/0.2717, allocations: 12 kB / 414.4 MB, free: 20.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.107e-06/0.2717, allocations: 0 / 414.4 MB, free: 20.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.2717, allocations: 7.984 kB / 414.4 MB, free: 20.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.024e-05/0.2718, allocations: 15.94 kB / 414.4 MB, free: 20.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.2718, allocations: 0 / 414.4 MB, free: 20.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.975e-05/0.2719, allocations: 15.91 kB / 414.4 MB, free: 20.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/0.2719, allocations: 7.984 kB / 414.4 MB, free: 20.56 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 8.903e-05/0.272, allocations: 149.7 kB / 414.5 MB, free: 20.41 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.273e-05/0.272, allocations: 77.45 kB / 414.6 MB, free: 20.32 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.387e-05/0.2721, allocations: 25.7 kB / 414.6 MB, free: 20.29 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.2721, allocations: 0 / 414.6 MB, free: 20.29 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.2721, allocations: 4 kB / 414.6 MB, free: 20.29 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.2721, allocations: 3.984 kB / 414.7 MB, free: 20.29 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001302/0.2723, allocations: 245.4 kB / 414.9 MB, free: 20 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.2723, allocations: 0 / 414.9 MB, free: 20 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.547e-05/0.2723, allocations: 4 kB / 414.9 MB, free: 19.99 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.2723, allocations: 4 kB / 414.9 MB, free: 19.99 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.137e-06/0.2723, allocations: 4.094 kB / 414.9 MB, free: 19.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.2723, allocations: 4 kB / 414.9 MB, free: 19.98 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.2723, allocations: 3.938 kB / 414.9 MB, free: 19.98 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001964/0.2725, allocations: 167.4 kB / 415.1 MB, free: 19.79 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.411e-05/0.2726, allocations: 124.8 kB / 415.2 MB, free: 19.64 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.508e-05/0.2726, allocations: 128 / 415.2 MB, free: 19.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.602e-05/0.2727, allocations: 12 kB / 415.2 MB, free: 19.63 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.307e-05/0.2728, allocations: 7.984 kB / 415.2 MB, free: 19.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.197e-05/0.2728, allocations: 4 kB / 415.2 MB, free: 19.62 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001371/0.2729, allocations: 206 kB / 415.4 MB, free: 19.42 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2729, allocations: 0 / 415.4 MB, free: 19.42 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000226/0.2731, allocations: 31.98 kB / 415.5 MB, free: 19.39 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * 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.0007574/0.2739, allocations: 430.8 kB / 415.9 MB, free: 19.11 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001742/0.2741, allocations: 67.91 kB / 415.9 MB, free: 19.05 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2741, allocations: 0 / 415.9 MB, free: 19.05 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.867e-05/0.2742, allocations: 32.05 kB / 416 MB, free: 19.02 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000367/0.2745, allocations: 77.22 kB / 416 MB, free: 18.94 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004374/0.275, allocations: 406.8 kB / 416.4 MB, free: 18.5 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001476/0.2752, allocations: 0.74 MB / 417.2 MB, free: 17.74 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.567e-05/0.2752, allocations: 23.44 kB / 417.2 MB, free: 17.72 MB / 298.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2752, allocations: 0 / 417.2 MB, free: 17.72 MB / 298.7 MB Notification: Performance of Templates: time 0.003603/0.2788, allocations: 2.824 MB / 420 MB, free: 14.91 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches