Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.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.TickBasedRamp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001688/0.001688, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 226.6 MB / 244.3 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007772/0.0007772, allocations: 90.22 kB / 296.4 MB, free: 7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002233/0.0002234, allocations: 8 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2298/0.2301, allocations: 51.3 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.001403/0.2315, allocations: 1.18 MB / 408.7 MB, free: 26.65 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001725/0.2317, allocations: 43.84 kB / 408.7 MB, free: 26.61 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.226e-05/0.2318, allocations: 0 / 408.7 MB, free: 26.61 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.337e-05/0.2318, allocations: 0 / 408.7 MB, free: 26.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.583e-05/0.2318, allocations: 7.938 kB / 408.7 MB, free: 26.6 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002452/0.2321, allocations: 23.47 kB / 408.8 MB, free: 26.58 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.759e-05/0.2322, allocations: 39.91 kB / 408.8 MB, free: 26.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.44e-05/0.2323, allocations: 4.844 kB / 408.8 MB, free: 26.54 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.702e-05/0.2323, allocations: 15.92 kB / 408.8 MB, free: 26.52 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.124e-05/0.2324, allocations: 20.53 kB / 408.8 MB, free: 26.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.989e-05/0.2324, allocations: 0 / 408.8 MB, free: 26.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.517e-06/0.2324, allocations: 4.531 kB / 408.8 MB, free: 26.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.19e-05/0.2324, allocations: 0 / 408.8 MB, free: 26.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.931e-05/0.2325, allocations: 34.98 kB / 408.9 MB, free: 26.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.311e-05/0.2325, allocations: 23.94 kB / 408.9 MB, free: 26.43 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.2325, allocations: 0 / 408.9 MB, free: 26.43 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.2326, allocations: 0.5312 kB / 408.9 MB, free: 26.43 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.2326, allocations: 0 / 408.9 MB, free: 26.43 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.0004107/0.233, allocations: 353.8 kB / 409.2 MB, free: 26.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.233, allocations: 12.03 kB / 409.3 MB, free: 26.03 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.931e-05/0.2331, allocations: 3.906 kB / 409.3 MB, free: 26.03 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001254/0.2332, allocations: 180 kB / 409.4 MB, free: 25.81 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.099e-05/0.2332, allocations: 4 kB / 409.4 MB, free: 25.81 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.257e-05/0.2332, allocations: 3.188 kB / 409.4 MB, free: 25.81 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005149/0.2338, allocations: 167.1 kB / 409.6 MB, free: 25.63 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.2338, allocations: 0 / 409.6 MB, free: 25.63 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.2338, allocations: 4 kB / 409.6 MB, free: 25.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.2338, allocations: 0 / 409.6 MB, free: 25.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002397/0.234, allocations: 50.12 kB / 409.7 MB, free: 25.58 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001038/0.2342, allocations: 165.7 kB / 409.8 MB, free: 25.37 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002916/0.2345, allocations: 98.47 kB / 409.9 MB, free: 25.27 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001449/0.2346, allocations: 44.86 kB / 410 MB, free: 25.22 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.156e-05/0.2346, allocations: 3.938 kB / 410 MB, free: 25.21 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.635e-05/0.2347, allocations: 34.52 kB / 410 MB, free: 25.17 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.252e-06/0.2347, allocations: 0 / 410 MB, free: 25.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0004511/0.2351, allocations: 125.5 kB / 410.1 MB, free: 25.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.71e-05/0.2352, allocations: 55.41 kB / 410.2 MB, free: 24.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.84e-05/0.2352, allocations: 109.8 kB / 410.3 MB, free: 24.86 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.224e-06/0.2352, allocations: 25.7 kB / 410.3 MB, free: 24.83 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.074e-05/0.2353, allocations: 88.14 kB / 410.4 MB, free: 24.74 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.073e-05/0.2353, allocations: 0 / 410.4 MB, free: 24.74 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.385e-06/0.2353, allocations: 7.938 kB / 410.4 MB, free: 24.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.269e-05/0.2353, allocations: 314.8 kB / 410.7 MB, free: 24.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.248e-05/0.2354, allocations: 7.984 kB / 410.7 MB, free: 24.41 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.842e-05/0.2354, allocations: 27.44 kB / 410.7 MB, free: 24.37 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.931e-05/0.2354, allocations: 8 kB / 410.7 MB, free: 24.36 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.2354, allocations: 0 / 410.7 MB, free: 24.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.427e-05/0.2355, allocations: 65.56 kB / 410.8 MB, free: 24.29 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/0.2355, allocations: 4 kB / 410.8 MB, free: 24.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.2355, allocations: 7.953 kB / 410.8 MB, free: 24.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.04e-05/0.2355, allocations: 0 / 410.8 MB, free: 24.28 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.769e-05/0.2356, allocations: 8 kB / 410.8 MB, free: 24.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.2356, allocations: 4.125 kB / 410.8 MB, free: 24.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.998e-05/0.2356, allocations: 11.89 kB / 410.8 MB, free: 24.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.817e-06/0.2356, allocations: 0 / 410.8 MB, free: 24.25 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: 2 (ramp.counter,$CLKPRE.ramp.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (ramp.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 4.984e-05/0.2357, allocations: 113.8 kB / 411 MB, free: 24.13 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002621/0.236, allocations: 89.58 kB / 411 MB, free: 24.04 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.328e-05/0.236, allocations: 7.906 kB / 411.1 MB, free: 24.02 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.236, allocations: 3.953 kB / 411.1 MB, free: 24.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.236, allocations: 3.984 kB / 411.1 MB, free: 24.01 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.236, allocations: 4 kB / 411.1 MB, free: 24.01 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.644e-05/0.2361, allocations: 161.7 kB / 411.2 MB, free: 23.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.2361, allocations: 0 / 411.2 MB, free: 23.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.073e-05/0.2362, allocations: 11.98 kB / 411.2 MB, free: 23.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.2362, allocations: 4 kB / 411.2 MB, free: 23.79 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.323e-06/0.2362, allocations: 0 / 411.2 MB, free: 23.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.2362, allocations: 0 / 411.2 MB, free: 23.79 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.2362, allocations: 3.953 kB / 411.2 MB, free: 23.78 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002782/0.2365, allocations: 121 kB / 411.4 MB, free: 23.64 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.649e-05/0.2365, allocations: 81.11 kB / 411.4 MB, free: 23.55 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.558e-05/0.2365, allocations: 0 / 411.4 MB, free: 23.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.879e-05/0.2366, allocations: 19.92 kB / 411.5 MB, free: 23.53 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.206e-06/0.2366, allocations: 0 / 411.5 MB, free: 23.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.103e-06/0.2366, allocations: 16 kB / 411.5 MB, free: 23.51 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.525e-05/0.2367, allocations: 87.53 kB / 411.6 MB, free: 23.43 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2367, allocations: 0 / 411.6 MB, free: 23.43 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001732/0.2368, allocations: 8 kB / 411.6 MB, free: 23.42 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: 1 (ramp.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (ramp.counter) * 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 9.182e-05/0.2369, allocations: 99.25 kB / 411.7 MB, free: 23.31 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001857/0.2371, allocations: 44.17 kB / 411.7 MB, free: 23.27 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2371, allocations: 0 / 411.7 MB, free: 23.27 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.92e-07/0.2371, allocations: 0 / 411.7 MB, free: 23.27 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003656/0.2375, allocations: 40.14 kB / 411.7 MB, free: 23.23 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003089/0.2378, allocations: 162.4 kB / 411.9 MB, free: 23.04 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.695e-05/0.2379, allocations: 0.6851 MB / 412.6 MB, free: 22.33 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.387e-05/0.238, allocations: 11.42 kB / 412.6 MB, free: 22.32 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.238, allocations: 0 / 412.6 MB, free: 22.32 MB / 298.7 MB Notification: Performance of Templates: time 0.0016/0.2396, allocations: 0.6761 MB / 413.3 MB, free: 21.65 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedRamp/TickBasedRamp.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches