Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.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.RealSignals.TimeBasedRamp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001258/0.001258, allocations: 200 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.392/1.392, allocations: 226.6 MB / 244.7 MB, free: 8.168 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008061/0.0008059, allocations: 99.11 kB / 296.8 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002862/0.0002862, allocations: 4 kB / 356.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.2643, allocations: 51.29 MB / 408 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp): time 0.001421/0.2658, allocations: 1.196 MB / 409.2 MB, free: 26.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005912/0.2664, allocations: 412.4 kB / 409.6 MB, free: 26.11 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.035e-05/0.2665, allocations: 0.5312 kB / 409.6 MB, free: 26.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.56e-05/0.2665, allocations: 0.6875 kB / 409.6 MB, free: 26.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.04e-05/0.2666, allocations: 7.938 kB / 409.6 MB, free: 26.11 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000247/0.2668, allocations: 30.5 kB / 409.7 MB, free: 26.08 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.119e-05/0.2669, allocations: 35.8 kB / 409.7 MB, free: 26.05 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001037/0.267, allocations: 11.98 kB / 409.7 MB, free: 26.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.585e-05/0.2671, allocations: 15.92 kB / 409.7 MB, free: 26.02 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.012e-05/0.2671, allocations: 7.938 kB / 409.7 MB, free: 26.01 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.843e-05/0.2672, allocations: 0 / 409.7 MB, free: 26.01 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.109e-05/0.2672, allocations: 4.625 kB / 409.8 MB, free: 26.01 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.524e-05/0.2672, allocations: 11.92 kB / 409.8 MB, free: 26 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.213e-05/0.2672, allocations: 38.84 kB / 409.8 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.952e-05/0.2673, allocations: 23.95 kB / 409.8 MB, free: 25.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.2673, allocations: 0 / 409.8 MB, free: 25.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.346e-06/0.2673, allocations: 1.031 kB / 409.8 MB, free: 25.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.2673, allocations: 3.938 kB / 409.8 MB, free: 25.93 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004432/0.2678, allocations: 351.4 kB / 410.2 MB, free: 25.54 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.2678, allocations: 8.031 kB / 410.2 MB, free: 25.53 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.349e-05/0.2679, allocations: 8.844 kB / 410.2 MB, free: 25.52 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001533/0.268, allocations: 176.4 kB / 410.4 MB, free: 25.31 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.654e-06/0.2681, allocations: 1.656 kB / 410.4 MB, free: 25.31 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.54e-05/0.2681, allocations: 4.375 kB / 410.4 MB, free: 25.31 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004249/0.2685, allocations: 159.7 kB / 410.5 MB, free: 25.14 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.2685, allocations: 4 kB / 410.5 MB, free: 25.14 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.2685, allocations: 7.922 kB / 410.5 MB, free: 25.13 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.2686, allocations: 0 / 410.5 MB, free: 25.13 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001513/0.2687, allocations: 39.97 kB / 410.6 MB, free: 25.09 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001064/0.2688, allocations: 161.6 kB / 410.7 MB, free: 24.89 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000244/0.2691, allocations: 98.52 kB / 410.8 MB, free: 24.78 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.807e-05/0.2692, allocations: 44.91 kB / 410.9 MB, free: 24.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.267e-05/0.2692, allocations: 0 / 410.9 MB, free: 24.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.194e-05/0.2692, allocations: 38.5 kB / 410.9 MB, free: 24.69 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 2.014e-06/0.2692, allocations: 0 / 410.9 MB, free: 24.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003217/0.2696, allocations: 113.6 kB / 411 MB, free: 24.57 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.461e-05/0.2696, allocations: 51.41 kB / 411.1 MB, free: 24.51 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.726e-05/0.2697, allocations: 105.8 kB / 411.2 MB, free: 24.39 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.953e-06/0.2697, allocations: 25.7 kB / 411.2 MB, free: 24.36 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.122e-05/0.2697, allocations: 96.12 kB / 411.3 MB, free: 24.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.083e-06/0.2697, allocations: 0 / 411.3 MB, free: 24.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.983e-06/0.2698, allocations: 0 / 411.3 MB, free: 24.27 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.588e-05/0.2698, allocations: 314.8 kB / 411.6 MB, free: 23.95 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.298e-06/0.2698, allocations: 4 kB / 411.6 MB, free: 23.95 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.91e-05/0.2699, allocations: 31.36 kB / 411.6 MB, free: 23.9 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.499e-05/0.2699, allocations: 31.44 kB / 411.7 MB, free: 23.86 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.2699, allocations: 4 kB / 411.7 MB, free: 23.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.645e-05/0.27, allocations: 61.47 kB / 411.7 MB, free: 23.79 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.27, allocations: 15.81 kB / 411.7 MB, free: 23.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.27, allocations: 0 / 411.7 MB, free: 23.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.27, allocations: 8.125 kB / 411.8 MB, free: 23.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.326e-05/0.2701, allocations: 4 kB / 411.8 MB, free: 23.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.2701, allocations: 0 / 411.8 MB, free: 23.76 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.942e-05/0.2701, allocations: 8 kB / 411.8 MB, free: 23.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.476e-06/0.2701, allocations: 0 / 411.8 MB, free: 23.75 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 5.584e-05/0.2702, allocations: 113.8 kB / 411.9 MB, free: 23.63 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001729/0.2704, allocations: 97.8 kB / 412 MB, free: 23.53 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.935e-05/0.2704, allocations: 15.89 kB / 412 MB, free: 23.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.2704, allocations: 0 / 412 MB, free: 23.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.2704, allocations: 4 kB / 412 MB, free: 23.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.666e-06/0.2704, allocations: 0 / 412 MB, free: 23.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.869e-05/0.2705, allocations: 157.7 kB / 412.1 MB, free: 23.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.2705, allocations: 0 / 412.1 MB, free: 23.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.803e-05/0.2706, allocations: 12 kB / 412.2 MB, free: 23.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.2706, allocations: 7.938 kB / 412.2 MB, free: 23.28 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.776e-06/0.2706, allocations: 3.984 kB / 412.2 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.2706, allocations: 0 / 412.2 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.2706, allocations: 0 / 412.2 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001893/0.2708, allocations: 120.9 kB / 412.3 MB, free: 23.14 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.331e-05/0.2708, allocations: 81.05 kB / 412.4 MB, free: 23.04 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.279e-05/0.2709, allocations: 0 / 412.4 MB, free: 23.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.394e-05/0.2709, allocations: 11.98 kB / 412.4 MB, free: 23.03 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.805e-06/0.2709, allocations: 0 / 412.4 MB, free: 23.03 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.117e-06/0.2709, allocations: 0 / 412.4 MB, free: 23.03 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.68e-05/0.271, allocations: 87.28 kB / 412.5 MB, free: 22.94 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.271, allocations: 0 / 412.5 MB, free: 22.94 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001686/0.2711, allocations: 11.98 kB / 412.5 MB, free: 22.93 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0001011/0.2712, allocations: 95.25 kB / 412.6 MB, free: 22.83 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001406/0.2714, allocations: 39.92 kB / 412.6 MB, free: 22.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.2714, allocations: 0 / 412.6 MB, free: 22.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.91e-07/0.2714, allocations: 0 / 412.6 MB, free: 22.79 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003525/0.2718, allocations: 42.66 kB / 412.6 MB, free: 22.75 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002676/0.272, allocations: 150.3 kB / 412.8 MB, free: 22.57 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000104/0.2722, allocations: 0.6809 MB / 413.5 MB, free: 21.86 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.278e-05/0.2722, allocations: 11.42 kB / 413.5 MB, free: 21.85 MB / 298.7 MB Notification: Performance of SimCode: time 3.21e-07/0.2722, allocations: 4 kB / 413.5 MB, free: 21.85 MB / 298.7 MB Notification: Performance of Templates: time 0.00165/0.2739, allocations: 0.5923 MB / 414.1 MB, free: 21.26 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedRamp/TimeBasedRamp.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches