Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001333/0.001333, allocations: 113.1 kB / 17.07 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 200 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.457/1.457, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001008/0.001008, allocations: 51.92 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4085/0.4095, allocations: 49.42 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.003831/0.4134, allocations: 1.459 MB / 402.2 MB, free: 7.426 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003151/0.4137, allocations: 47.84 kB / 402.2 MB, free: 7.379 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001103/0.4139, allocations: 0 / 402.2 MB, free: 7.379 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.517e-05/0.414, allocations: 3.938 kB / 402.2 MB, free: 7.375 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.214e-05/0.4141, allocations: 3.938 kB / 402.2 MB, free: 7.371 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000319/0.4144, allocations: 27.95 kB / 402.3 MB, free: 7.344 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001174/0.4145, allocations: 35.92 kB / 402.3 MB, free: 7.309 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.4147, allocations: 8 kB / 402.3 MB, free: 7.301 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.834e-05/0.4148, allocations: 19.92 kB / 402.3 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.352e-05/0.4148, allocations: 15.92 kB / 402.3 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.803e-05/0.4148, allocations: 7.984 kB / 402.3 MB, free: 7.258 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.287e-05/0.4149, allocations: 8 kB / 402.4 MB, free: 7.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.046e-05/0.4149, allocations: 11.92 kB / 402.4 MB, free: 7.238 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.233e-05/0.415, allocations: 11.94 kB / 402.4 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001395/0.4151, allocations: 39.88 kB / 402.4 MB, free: 7.188 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.034e-05/0.4151, allocations: 0 / 402.4 MB, free: 7.188 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.075e-06/0.4151, allocations: 3.938 kB / 402.4 MB, free: 7.184 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.596e-06/0.4151, allocations: 0 / 402.4 MB, free: 7.184 MB / 318.1 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.0006689/0.4158, allocations: 355.6 kB / 402.8 MB, free: 6.789 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.4159, allocations: 8.031 kB / 402.8 MB, free: 6.781 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.711e-05/0.4159, allocations: 12.84 kB / 402.8 MB, free: 6.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003222/0.4163, allocations: 184 kB / 403 MB, free: 6.555 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.034e-05/0.4163, allocations: 4.375 kB / 403 MB, free: 6.551 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.74e-05/0.4163, allocations: 4.375 kB / 403 MB, free: 6.547 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006637/0.417, allocations: 167.7 kB / 403.1 MB, free: 6.371 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.417, allocations: 192 / 403.1 MB, free: 6.371 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.767e-05/0.4171, allocations: 7.938 kB / 403.1 MB, free: 6.363 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.4171, allocations: 0 / 403.1 MB, free: 6.363 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002547/0.4173, allocations: 47.94 kB / 403.2 MB, free: 6.316 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002281/0.4176, allocations: 161.7 kB / 403.4 MB, free: 6.109 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003399/0.4179, allocations: 82.45 kB / 403.4 MB, free: 6.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001516/0.4181, allocations: 36.91 kB / 403.5 MB, free: 5.98 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.03e-05/0.4181, allocations: 0 / 403.5 MB, free: 5.98 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.399e-05/0.4182, allocations: 46.48 kB / 403.5 MB, free: 5.926 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.4182, allocations: 4 kB / 403.5 MB, free: 5.922 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0005495/0.4187, allocations: 113.5 kB / 403.6 MB, free: 5.805 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.715e-05/0.4188, allocations: 55.41 kB / 403.7 MB, free: 5.738 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001225/0.419, allocations: 105.8 kB / 403.8 MB, free: 5.625 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.419, allocations: 25.7 kB / 403.8 MB, free: 5.594 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.231e-05/0.4191, allocations: 88.08 kB / 403.9 MB, free: 5.504 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.482e-05/0.4191, allocations: 4 kB / 403.9 MB, free: 5.5 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.956e-05/0.4191, allocations: 25.7 kB / 403.9 MB, free: 5.469 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.4193, allocations: 310.8 kB / 404.2 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.25e-05/0.4193, allocations: 8 kB / 404.2 MB, free: 5.148 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.17e-05/0.4194, allocations: 31.55 kB / 404.3 MB, free: 5.105 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.006e-05/0.4195, allocations: 43.38 kB / 404.3 MB, free: 5.051 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.4195, allocations: 0 / 404.3 MB, free: 5.051 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001175/0.4196, allocations: 61.53 kB / 404.4 MB, free: 4.984 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/0.4196, allocations: 4 kB / 404.4 MB, free: 4.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.4197, allocations: 3.938 kB / 404.4 MB, free: 4.977 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.624e-05/0.4197, allocations: 7.984 kB / 404.4 MB, free: 4.969 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.96e-05/0.4198, allocations: 8 kB / 404.4 MB, free: 4.961 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.4198, allocations: 4.125 kB / 404.4 MB, free: 4.957 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.542e-05/0.4198, allocations: 0 / 404.4 MB, free: 4.957 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.016e-05/0.4198, allocations: 4 kB / 404.4 MB, free: 4.953 MB / 318.1 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 ($CLKPRE.ramp.counter,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001208/0.42, allocations: 117.8 kB / 404.5 MB, free: 4.828 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003003/0.4203, allocations: 85.62 kB / 404.6 MB, free: 4.738 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.33e-05/0.4203, allocations: 11.84 kB / 404.6 MB, free: 4.719 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.4203, allocations: 0 / 404.6 MB, free: 4.719 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.4204, allocations: 0 / 404.6 MB, free: 4.719 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.4204, allocations: 0 / 404.6 MB, free: 4.719 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001408/0.4205, allocations: 165.7 kB / 404.8 MB, free: 4.508 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.4205, allocations: 0 / 404.8 MB, free: 4.508 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001048/0.4206, allocations: 15.97 kB / 404.8 MB, free: 4.492 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.97e-06/0.4207, allocations: 0 / 404.8 MB, free: 4.492 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.265e-05/0.4207, allocations: 4.062 kB / 404.8 MB, free: 4.488 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.4207, allocations: 8 kB / 404.8 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.4207, allocations: 0 / 404.8 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003228/0.421, allocations: 116.9 kB / 404.9 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.849e-05/0.4211, allocations: 89.05 kB / 405 MB, free: 4.242 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.287e-05/0.4211, allocations: 7.938 kB / 405 MB, free: 4.234 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.486e-05/0.4212, allocations: 7.984 kB / 405 MB, free: 4.227 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.959e-06/0.4212, allocations: 3.938 kB / 405 MB, free: 4.223 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.184e-06/0.4212, allocations: 4 kB / 405 MB, free: 4.219 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.811e-05/0.4213, allocations: 87.27 kB / 405.1 MB, free: 4.133 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4213, allocations: 0 / 405.1 MB, free: 4.133 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000208/0.4215, allocations: 4 kB / 405.1 MB, free: 4.129 MB / 318.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001713/0.4217, allocations: 108 kB / 405.2 MB, free: 4.016 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000242/0.4219, allocations: 43.91 kB / 405.3 MB, free: 3.973 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.4219, allocations: 0 / 405.3 MB, free: 3.973 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.01e-07/0.4219, allocations: 0 / 405.3 MB, free: 3.973 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004032/0.4223, allocations: 35.98 kB / 405.3 MB, free: 3.938 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005195/0.4229, allocations: 133.4 kB / 405.4 MB, free: 3.781 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003617/0.4232, allocations: 0.6844 MB / 406.1 MB, free: 3.07 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.609e-05/0.4233, allocations: 12.23 kB / 406.1 MB, free: 3.059 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.213e-05/0.4233, allocations: 7.438 kB / 406.1 MB, free: 3.051 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.4233, allocations: 0 / 406.1 MB, free: 3.051 MB / 318.1 MB Notification: Performance of Templates: time 0.00319/0.4265, allocations: 0.5299 MB / 406.7 MB, free: 2.531 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches