Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00168/0.00168, allocations: 122 kB / 17.84 MB, free: 5.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001843/0.001843, allocations: 210 kB / 18.79 MB, free: 4.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.464/1.464, allocations: 230.4 MB / 250 MB, free: 8.996 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 71.83 kB / 366.9 MB, free: 7.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2967/0.2987, allocations: 53.3 MB / 420.2 MB, free: 8.277 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.002874/0.3015, allocations: 1.483 MB / 421.6 MB, free: 6.797 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002372/0.3018, allocations: 39.83 kB / 421.7 MB, free: 6.758 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.683e-05/0.3018, allocations: 0 / 421.7 MB, free: 6.758 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.306e-05/0.3019, allocations: 7.938 kB / 421.7 MB, free: 6.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.077e-05/0.3019, allocations: 7.875 kB / 421.7 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003275/0.3023, allocations: 23.97 kB / 421.7 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001094/0.3024, allocations: 43.84 kB / 421.8 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001127/0.3025, allocations: 8 kB / 421.8 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.171e-05/0.3025, allocations: 15.92 kB / 421.8 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.516e-05/0.3026, allocations: 19.91 kB / 421.8 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.136e-05/0.3026, allocations: 4 kB / 421.8 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.184e-05/0.3026, allocations: 4 kB / 421.8 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.844e-05/0.3026, allocations: 4 kB / 421.8 MB, free: 6.621 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.412e-05/0.3027, allocations: 23.86 kB / 421.8 MB, free: 6.598 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000116/0.3028, allocations: 35.89 kB / 421.9 MB, free: 6.562 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3028, allocations: 0 / 421.9 MB, free: 6.562 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3028, allocations: 0 / 421.9 MB, free: 6.562 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.3028, allocations: 0 / 421.9 MB, free: 6.562 MB / 334.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.0005483/0.3034, allocations: 358.4 kB / 422.2 MB, free: 6.164 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.3034, allocations: 12.03 kB / 422.2 MB, free: 6.152 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.519e-05/0.3034, allocations: 34.73 kB / 422.3 MB, free: 6.109 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.024e-05/0.3035, allocations: 8.891 kB / 422.3 MB, free: 6.102 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002541/0.3037, allocations: 188.2 kB / 422.5 MB, free: 5.879 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.114e-05/0.3038, allocations: 384 / 422.5 MB, free: 5.879 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.335e-05/0.3038, allocations: 4.375 kB / 422.5 MB, free: 5.875 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005596/0.3043, allocations: 163.7 kB / 422.6 MB, free: 5.703 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.3043, allocations: 3.938 kB / 422.6 MB, free: 5.699 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.227e-06/0.3043, allocations: 0 / 422.6 MB, free: 5.699 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.3044, allocations: 0 / 422.6 MB, free: 5.699 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002432/0.3046, allocations: 55.86 kB / 422.7 MB, free: 5.645 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001671/0.3048, allocations: 165.7 kB / 422.9 MB, free: 5.434 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003113/0.3051, allocations: 82.5 kB / 422.9 MB, free: 5.344 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001414/0.3052, allocations: 32.91 kB / 423 MB, free: 5.309 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.355e-05/0.3052, allocations: 0 / 423 MB, free: 5.309 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.138e-05/0.3053, allocations: 34.56 kB / 423 MB, free: 5.266 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 7.81e-07/0.3053, allocations: 0 / 423 MB, free: 5.266 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.000472/0.3057, allocations: 121.5 kB / 423.1 MB, free: 5.141 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.617e-05/0.3058, allocations: 59.41 kB / 423.2 MB, free: 5.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.13e-05/0.3059, allocations: 105.8 kB / 423.3 MB, free: 4.957 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.773e-05/0.3059, allocations: 25.7 kB / 423.3 MB, free: 4.926 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.401e-05/0.306, allocations: 84.14 kB / 423.4 MB, free: 4.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.659e-05/0.306, allocations: 7.953 kB / 423.4 MB, free: 4.832 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.811e-05/0.306, allocations: 17.72 kB / 423.4 MB, free: 4.809 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.3061, allocations: 318.8 kB / 423.7 MB, free: 4.488 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.377e-05/0.3062, allocations: 4 kB / 423.7 MB, free: 4.484 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.198e-05/0.3062, allocations: 27.44 kB / 423.8 MB, free: 4.445 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.221e-05/0.3062, allocations: 47.3 kB / 423.8 MB, free: 4.387 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3062, allocations: 0 / 423.8 MB, free: 4.387 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.861e-05/0.3063, allocations: 65.56 kB / 423.9 MB, free: 4.316 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.3064, allocations: 7.938 kB / 423.9 MB, free: 4.309 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.3064, allocations: 4 kB / 423.9 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.3064, allocations: 0 / 423.9 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.186e-05/0.3064, allocations: 8 kB / 423.9 MB, free: 4.297 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.491e-06/0.3064, allocations: 0 / 423.9 MB, free: 4.297 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.93e-05/0.3065, allocations: 0 / 423.9 MB, free: 4.297 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.032e-06/0.3065, allocations: 12.19 kB / 423.9 MB, free: 4.285 MB / 334.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 9.129e-05/0.3066, allocations: 117.8 kB / 424 MB, free: 4.16 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002797/0.3068, allocations: 97.45 kB / 424.1 MB, free: 4.059 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.38e-05/0.3069, allocations: 7.906 kB / 424.1 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.3069, allocations: 0 / 424.1 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.3069, allocations: 0 / 424.1 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.3069, allocations: 4 kB / 424.1 MB, free: 4.035 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001135/0.307, allocations: 157.7 kB / 424.3 MB, free: 3.832 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.307, allocations: 0 / 424.3 MB, free: 3.832 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.438e-05/0.3071, allocations: 19.97 kB / 424.3 MB, free: 3.812 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.3071, allocations: 3.938 kB / 424.3 MB, free: 3.809 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-06/0.3071, allocations: 4 kB / 424.3 MB, free: 3.805 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.3071, allocations: 0 / 424.3 MB, free: 3.805 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3071, allocations: 0 / 424.3 MB, free: 3.805 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003088/0.3074, allocations: 121.2 kB / 424.4 MB, free: 3.668 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.961e-05/0.3075, allocations: 77.11 kB / 424.5 MB, free: 3.574 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.736e-05/0.3075, allocations: 3.938 kB / 424.5 MB, free: 3.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.496e-05/0.3075, allocations: 12.03 kB / 424.5 MB, free: 3.559 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.063e-06/0.3076, allocations: 7.984 kB / 424.5 MB, free: 3.551 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.615e-06/0.3076, allocations: 4 kB / 424.5 MB, free: 3.547 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.783e-05/0.3076, allocations: 83.27 kB / 424.6 MB, free: 3.465 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3076, allocations: 0 / 424.6 MB, free: 3.465 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001853/0.3078, allocations: 8 kB / 424.6 MB, free: 3.457 MB / 334.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.0007802/0.3086, allocations: 0.6866 MB / 425.3 MB, free: 2.742 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002029/0.3088, allocations: 39.91 kB / 425.3 MB, free: 2.703 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.3088, allocations: 0 / 425.3 MB, free: 2.703 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.51e-07/0.3088, allocations: 0 / 425.3 MB, free: 2.703 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003756/0.3092, allocations: 46.84 kB / 425.4 MB, free: 2.66 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001125/0.3103, allocations: 1.205 MB / 426.6 MB, free: 1.355 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002787/0.3106, allocations: 0.6807 MB / 427.3 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.124e-05/0.3106, allocations: 0 / 427.3 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.859e-05/0.3106, allocations: 19.42 kB / 427.3 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3106, allocations: 0 / 427.3 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02305/0.3337, allocations: 1.526 MB / 428.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.738/8.072, allocations: 11.55 kB / 428.8 MB, free: 15.24 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe 2>&1)