Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001134/0.001134, allocations: 200.4 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.555/1.555, allocations: 226.6 MB / 244.7 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008148/0.0008149, allocations: 98.94 kB / 296.8 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002887/0.0002887, allocations: 8 kB / 356.8 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2598/0.2601, allocations: 51.3 MB / 408 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.001725/0.2619, allocations: 1.609 MB / 409.7 MB, free: 26.12 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001663/0.2635, allocations: 1.205 MB / 410.9 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001098/0.2637, allocations: 0 / 410.9 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002614/0.2639, allocations: 71.72 kB / 410.9 MB, free: 24.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002792/0.2642, allocations: 104.4 kB / 411 MB, free: 24.74 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005997/0.2648, allocations: 214.9 kB / 411.2 MB, free: 24.53 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001776/0.265, allocations: 159.5 kB / 411.4 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001076/0.2652, allocations: 43.97 kB / 411.4 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.697e-05/0.2652, allocations: 67.64 kB / 411.5 MB, free: 24.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.275e-05/0.2653, allocations: 71.69 kB / 411.6 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.794e-05/0.2654, allocations: 0.5938 kB / 411.6 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001194/0.2655, allocations: 47.97 kB / 411.6 MB, free: 24.15 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.572e-05/0.2656, allocations: 55.3 kB / 411.7 MB, free: 24.1 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.547e-05/0.2657, allocations: 93.23 kB / 411.8 MB, free: 24 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001896/0.2658, allocations: 188.5 kB / 412 MB, free: 23.82 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.2659, allocations: 4 kB / 412 MB, free: 23.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2659, allocations: 0 / 412 MB, free: 23.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.527e-06/0.2659, allocations: 0 / 412 MB, free: 23.82 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.0005398/0.2664, allocations: 0.504 MB / 412.5 MB, free: 23.26 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.2665, allocations: 16.03 kB / 412.5 MB, free: 23.24 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.651e-05/0.2665, allocations: 32.56 kB / 412.5 MB, free: 23.21 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002743/0.2668, allocations: 287.5 kB / 412.8 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.904e-05/0.2668, allocations: 8.375 kB / 412.8 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.535e-05/0.2668, allocations: 8.125 kB / 412.8 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003023/0.2672, allocations: 179.5 kB / 413 MB, free: 22.67 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.2672, allocations: 0 / 413 MB, free: 22.67 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.584e-05/0.2672, allocations: 11.98 kB / 413 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.2672, allocations: 0 / 413 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001055/0.2673, allocations: 39.91 kB / 413 MB, free: 22.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004271/0.2678, allocations: 407.1 kB / 413.4 MB, free: 22.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002066/0.268, allocations: 142.5 kB / 413.6 MB, free: 21.99 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.404e-05/0.2681, allocations: 63.41 kB / 413.6 MB, free: 21.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.395e-05/0.2681, allocations: 3.938 kB / 413.6 MB, free: 21.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001833/0.2683, allocations: 83.39 kB / 413.7 MB, free: 21.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.573e-06/0.2683, allocations: 0 / 413.7 MB, free: 21.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003489/0.2687, allocations: 165.2 kB / 413.9 MB, free: 21.65 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.514e-05/0.2687, allocations: 187.9 kB / 414.1 MB, free: 21.42 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002721/0.269, allocations: 351.3 kB / 414.4 MB, free: 21.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.419e-05/0.269, allocations: 29.7 kB / 414.4 MB, free: 21.03 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.19e-05/0.2691, allocations: 132.3 kB / 414.6 MB, free: 20.89 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.131e-05/0.2691, allocations: 15.8 kB / 414.6 MB, free: 20.88 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.982e-06/0.2691, allocations: 8 kB / 414.6 MB, free: 20.87 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.318e-05/0.2692, allocations: 334.8 kB / 414.9 MB, free: 20.54 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.448e-05/0.2693, allocations: 23.98 kB / 414.9 MB, free: 20.51 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.772e-05/0.2694, allocations: 103.9 kB / 415 MB, free: 20.38 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001357/0.2695, allocations: 109.9 kB / 415.1 MB, free: 20.25 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.2695, allocations: 0 / 415.1 MB, free: 20.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002082/0.2697, allocations: 133.3 kB / 415.3 MB, free: 20.12 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.2697, allocations: 11.94 kB / 415.3 MB, free: 20.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.2698, allocations: 0 / 415.3 MB, free: 20.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.2698, allocations: 4 kB / 415.3 MB, free: 20.1 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.2699, allocations: 24.11 kB / 415.3 MB, free: 20.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.2699, allocations: 8 kB / 415.3 MB, free: 20.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.67e-05/0.27, allocations: 15.86 kB / 415.3 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.087e-05/0.27, allocations: 8 kB / 415.3 MB, free: 20.05 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,table.y,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 0.0001075/0.2701, allocations: 149.8 kB / 415.5 MB, free: 19.89 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.252e-05/0.2702, allocations: 77.34 kB / 415.6 MB, free: 19.81 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.914e-05/0.2703, allocations: 29.73 kB / 415.6 MB, free: 19.78 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.2703, allocations: 8.094 kB / 415.6 MB, free: 19.77 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.2703, allocations: 0 / 415.6 MB, free: 19.77 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.2703, allocations: 3.938 kB / 415.6 MB, free: 19.77 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001768/0.2705, allocations: 253.5 kB / 415.9 MB, free: 19.47 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2705, allocations: 0 / 415.9 MB, free: 19.47 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.005e-05/0.2706, allocations: 20.23 kB / 415.9 MB, free: 19.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.2706, allocations: 4 kB / 415.9 MB, free: 19.45 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.2706, allocations: 0 / 415.9 MB, free: 19.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.2706, allocations: 8 kB / 415.9 MB, free: 19.44 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.2706, allocations: 0 / 415.9 MB, free: 19.44 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002389/0.2709, allocations: 195.8 kB / 416.1 MB, free: 19.22 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.624e-05/0.271, allocations: 124.7 kB / 416.2 MB, free: 19.08 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.147e-05/0.271, allocations: 0 / 416.2 MB, free: 19.08 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.742e-05/0.2711, allocations: 4 kB / 416.2 MB, free: 19.08 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.805e-05/0.2711, allocations: 11.98 kB / 416.2 MB, free: 19.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.2711, allocations: 11.94 kB / 416.2 MB, free: 19.05 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001901/0.2713, allocations: 253.9 kB / 416.5 MB, free: 18.8 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2713, allocations: 0 / 416.5 MB, free: 18.8 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002614/0.2716, allocations: 35.98 kB / 416.5 MB, free: 18.77 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,table.y,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.0009304/0.2726, allocations: 418.1 kB / 416.9 MB, free: 18.49 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002176/0.2728, allocations: 88.02 kB / 417 MB, free: 18.4 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.2728, allocations: 0 / 417 MB, free: 18.4 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.172e-05/0.2729, allocations: 31.92 kB / 417 MB, free: 18.37 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004264/0.2733, allocations: 76.62 kB / 417.1 MB, free: 18.3 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005649/0.2739, allocations: 460.3 kB / 417.6 MB, free: 17.81 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001954/0.2741, allocations: 0.7479 MB / 418.3 MB, free: 17.04 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.083e-05/0.2741, allocations: 19.44 kB / 418.3 MB, free: 17.02 MB / 298.7 MB Notification: Performance of SimCode: time 5.21e-07/0.2742, allocations: 4 kB / 418.3 MB, free: 17.02 MB / 298.7 MB Notification: Performance of Templates: time 0.004281/0.2784, allocations: 3.104 MB / 421.4 MB, free: 13.92 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches