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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001111/0.001111, allocations: 201 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.446/1.446, allocations: 226.5 MB / 244.7 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008291/0.000829, allocations: 106.9 kB / 296.7 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003103/0.0003104, allocations: 8 kB / 356.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2999/0.3002, allocations: 51.3 MB / 408.1 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.001461/0.3018, allocations: 1.183 MB / 409.3 MB, free: 26.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001802/0.302, allocations: 39.84 kB / 409.4 MB, free: 26.44 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.162e-05/0.302, allocations: 0 / 409.4 MB, free: 26.44 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.404e-05/0.3021, allocations: 1.219 kB / 409.4 MB, free: 26.44 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.864e-05/0.3021, allocations: 3.938 kB / 409.4 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002599/0.3024, allocations: 15.98 kB / 409.4 MB, free: 26.42 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.825e-05/0.3025, allocations: 32.95 kB / 409.4 MB, free: 26.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.248e-05/0.3026, allocations: 11.98 kB / 409.4 MB, free: 26.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.903e-05/0.3026, allocations: 12.67 kB / 409.4 MB, free: 26.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.018e-05/0.3027, allocations: 19.92 kB / 409.5 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.591e-05/0.3027, allocations: 1.438 kB / 409.5 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.132e-05/0.3027, allocations: 0 / 409.5 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.742e-05/0.3027, allocations: 7.984 kB / 409.5 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.214e-05/0.3028, allocations: 37.64 kB / 409.5 MB, free: 26.29 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.109e-05/0.3028, allocations: 25.5 kB / 409.5 MB, free: 26.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.3029, allocations: 0 / 409.5 MB, free: 26.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.126e-06/0.3029, allocations: 0 / 409.5 MB, free: 26.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.316e-06/0.3029, allocations: 3.938 kB / 409.5 MB, free: 26.27 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.0004164/0.3033, allocations: 357.9 kB / 409.9 MB, free: 25.87 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.3034, allocations: 8.031 kB / 409.9 MB, free: 25.86 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.489e-05/0.3034, allocations: 43.27 kB / 409.9 MB, free: 25.81 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.629e-05/0.3034, allocations: 6.094 kB / 409.9 MB, free: 25.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000145/0.3036, allocations: 172.3 kB / 410.1 MB, free: 25.6 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.3036, allocations: 4.375 kB / 410.1 MB, free: 25.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.225e-05/0.3036, allocations: 9.766 kB / 410.1 MB, free: 25.59 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005577/0.3042, allocations: 160.8 kB / 410.3 MB, free: 25.42 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.3042, allocations: 7.875 kB / 410.3 MB, free: 25.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.748e-06/0.3042, allocations: 4.969 kB / 410.3 MB, free: 25.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.3042, allocations: 0 / 410.3 MB, free: 25.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002409/0.3045, allocations: 51.94 kB / 410.3 MB, free: 25.36 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001117/0.3046, allocations: 161.3 kB / 410.5 MB, free: 25.15 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002901/0.3049, allocations: 94.47 kB / 410.6 MB, free: 25.05 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001343/0.305, allocations: 40.88 kB / 410.6 MB, free: 25.01 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.293e-05/0.3051, allocations: 0 / 410.6 MB, free: 25.01 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.436e-05/0.3051, allocations: 30.56 kB / 410.7 MB, free: 24.97 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 7.01e-07/0.3051, allocations: 4 kB / 410.7 MB, free: 24.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0004439/0.3055, allocations: 125.4 kB / 410.8 MB, free: 24.84 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.16e-05/0.3056, allocations: 55.41 kB / 410.8 MB, free: 24.77 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.933e-05/0.3057, allocations: 105.8 kB / 410.9 MB, free: 24.66 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.013e-05/0.3057, allocations: 33.64 kB / 411 MB, free: 24.62 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.766e-05/0.3057, allocations: 80.14 kB / 411.1 MB, free: 24.54 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.27e-05/0.3057, allocations: 3.938 kB / 411.1 MB, free: 24.53 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.445e-06/0.3057, allocations: 4 kB / 411.1 MB, free: 24.53 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.349e-05/0.3058, allocations: 318.8 kB / 411.4 MB, free: 24.21 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.217e-05/0.3058, allocations: 7.984 kB / 411.4 MB, free: 24.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.212e-05/0.3058, allocations: 27.44 kB / 411.4 MB, free: 24.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.778e-05/0.3059, allocations: 43.38 kB / 411.5 MB, free: 24.11 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3059, allocations: 0 / 411.5 MB, free: 24.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.728e-05/0.306, allocations: 65.53 kB / 411.5 MB, free: 24.04 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.306, allocations: 7.938 kB / 411.5 MB, free: 24.03 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.306, allocations: 0 / 411.5 MB, free: 24.03 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.306, allocations: 4 kB / 411.5 MB, free: 24.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.109e-05/0.3061, allocations: 4 kB / 411.5 MB, free: 24.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.235e-06/0.3061, allocations: 11.92 kB / 411.5 MB, free: 24.01 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.794e-05/0.3061, allocations: 0 / 411.5 MB, free: 24.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.558e-06/0.3061, allocations: 8.125 kB / 411.6 MB, free: 24 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 5.847e-05/0.3062, allocations: 109.8 kB / 411.7 MB, free: 23.88 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000261/0.3065, allocations: 89.58 kB / 411.7 MB, free: 23.79 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.426e-05/0.3065, allocations: 11.91 kB / 411.8 MB, free: 23.77 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.3065, allocations: 3.984 kB / 411.8 MB, free: 23.76 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.3065, allocations: 0 / 411.8 MB, free: 23.76 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.3065, allocations: 240 / 411.8 MB, free: 23.76 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.373e-05/0.3066, allocations: 165.7 kB / 411.9 MB, free: 23.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.3066, allocations: 0 / 411.9 MB, free: 23.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.115e-05/0.3067, allocations: 19.98 kB / 411.9 MB, free: 23.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.3067, allocations: 11.86 kB / 412 MB, free: 23.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.3067, allocations: 0 / 412 MB, free: 23.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.3067, allocations: 4 kB / 412 MB, free: 23.52 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.3067, allocations: 3.938 kB / 412 MB, free: 23.51 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002806/0.307, allocations: 113.1 kB / 412.1 MB, free: 23.38 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.3e-05/0.307, allocations: 81.11 kB / 412.2 MB, free: 23.29 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.584e-05/0.3071, allocations: 3.938 kB / 412.2 MB, free: 23.28 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.487e-05/0.3071, allocations: 11.98 kB / 412.2 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.677e-06/0.3071, allocations: 3.938 kB / 412.2 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.081e-06/0.3072, allocations: 7.984 kB / 412.2 MB, free: 23.26 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.396e-05/0.3072, allocations: 87.27 kB / 412.3 MB, free: 23.17 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3072, allocations: 0 / 412.3 MB, free: 23.17 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00017/0.3074, allocations: 4 kB / 412.3 MB, free: 23.17 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 0.0006168/0.308, allocations: 0.6982 MB / 413 MB, free: 22.44 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001878/0.3082, allocations: 43.89 kB / 413 MB, free: 22.4 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3082, allocations: 0 / 413 MB, free: 22.4 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.82e-07/0.3082, allocations: 0 / 413 MB, free: 22.4 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003774/0.3086, allocations: 43.22 kB / 413.1 MB, free: 22.36 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005471/0.3091, allocations: 439.1 kB / 413.5 MB, free: 21.87 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001106/0.3093, allocations: 0.6818 MB / 414.2 MB, free: 21.16 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.802e-05/0.3093, allocations: 15.42 kB / 414.2 MB, free: 21.14 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3093, allocations: 3.938 kB / 414.2 MB, free: 21.14 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.471/2.78, allocations: 0.8785 MB / 415.1 MB, free: 20.27 MB / 298.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp.fmu > 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/jenkins1/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) "" Variables in the reference:time,assignClock1.y Variables in the result:assignClock1.u,assignClock1.y,periodicClock1.period,periodicClock1.useSolver,previous(ramp.counter),ramp.counter,ramp.durationTicks,ramp.height,ramp.offset,ramp.startTick,ramp.y,time