Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SlewRateLimiter.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.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001238/0.001238, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001313/0.001313, allocations: 199.9 kB / 18.74 MB, free: 4.184 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.412/1.412, allocations: 227.7 MB / 247.2 MB, free: 10.13 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.001862/0.001862, allocations: 67.89 kB / 358.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.266/0.2678, allocations: 50.53 MB / 409.1 MB, free: 1.32 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002757/0.2706, allocations: 1.697 MB / 410.8 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008595/0.2715, allocations: 0.5065 MB / 411.3 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.574e-05/0.2716, allocations: 11.88 kB / 411.3 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001122/0.2717, allocations: 11.86 kB / 411.3 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.865e-05/0.2718, allocations: 31.72 kB / 411.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001477/0.272, allocations: 39.95 kB / 411.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001772/0.2722, allocations: 111.6 kB / 411.5 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.2723, allocations: 37.08 kB / 411.5 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.581e-05/0.2724, allocations: 35.8 kB / 411.5 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.023e-05/0.2725, allocations: 51.7 kB / 411.6 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.182e-05/0.2725, allocations: 8 kB / 411.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.828e-05/0.2725, allocations: 8 kB / 411.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.909e-05/0.2725, allocations: 19.86 kB / 411.6 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.938e-05/0.2726, allocations: 51.67 kB / 411.7 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001386/0.2727, allocations: 90.66 kB / 411.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.2728, allocations: 4 kB / 411.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2728, allocations: 0 / 411.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.658e-06/0.2728, allocations: 4 kB / 411.8 MB, free: 14.6 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0005679/0.2733, allocations: 430.8 kB / 412.2 MB, free: 14.13 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.2734, allocations: 8.031 kB / 412.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.786e-05/0.2735, allocations: 42.75 kB / 412.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.315e-05/0.2735, allocations: 12.84 kB / 412.3 MB, free: 14.06 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002734/0.2738, allocations: 220.7 kB / 412.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.2738, allocations: 12.33 kB / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.486e-05/0.2738, allocations: 11.94 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002827/0.2741, allocations: 124.2 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.2741, allocations: 0 / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/0.2742, allocations: 4 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.2742, allocations: 8 kB / 412.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000205/0.2744, allocations: 71.88 kB / 412.7 MB, free: 13.56 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007025/0.2751, allocations: 0.5477 MB / 413.2 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003516/0.2755, allocations: 130.4 kB / 413.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001542/0.2756, allocations: 60.81 kB / 413.4 MB, free: 12.76 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.245e-05/0.2756, allocations: 4 kB / 413.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.748e-05/0.2757, allocations: 30.56 kB / 413.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.323e-06/0.2757, allocations: 0 / 413.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.00118/0.2769, allocations: 0.5205 MB / 414 MB, free: 12.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.544e-05/0.2769, allocations: 55.41 kB / 414 MB, free: 12.08 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001377/0.2771, allocations: 150.9 kB / 414.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/0.2771, allocations: 29.7 kB / 414.2 MB, free: 11.89 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.4e-05/0.2772, allocations: 108 kB / 414.3 MB, free: 11.78 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.858e-05/0.2772, allocations: 47.58 kB / 414.4 MB, free: 11.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.211e-05/0.2773, allocations: 37.7 kB / 414.4 MB, free: 11.69 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.2774, allocations: 322.8 kB / 414.7 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000161/0.2776, allocations: 51.95 kB / 414.8 MB, free: 11.32 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001661/0.2778, allocations: 79.45 kB / 414.8 MB, free: 11.23 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003123/0.2781, allocations: 135.3 kB / 415 MB, free: 11.08 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.2781, allocations: 0 / 415 MB, free: 11.08 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003943/0.2785, allocations: 185.4 kB / 415.2 MB, free: 10.89 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.2785, allocations: 7.938 kB / 415.2 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.2785, allocations: 4 kB / 415.2 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.2786, allocations: 0 / 415.2 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001628/0.2787, allocations: 35.97 kB / 415.2 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.2787, allocations: 4 kB / 415.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.01e-05/0.2788, allocations: 20.08 kB / 415.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.086e-05/0.2788, allocations: 4.938 kB / 415.2 MB, free: 10.82 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: 1 (positionSmoothed.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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.0001156/0.279, allocations: 121.8 kB / 415.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.582e-05/0.279, allocations: 15.84 kB / 415.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.895e-05/0.2791, allocations: 16.72 kB / 415.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.2791, allocations: 0 / 415.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.2791, allocations: 0 / 415.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.2791, allocations: 7.969 kB / 415.4 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008697/0.28, allocations: 0.4998 MB / 415.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.28, allocations: 0 / 415.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001602/0.2801, allocations: 32.05 kB / 415.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.2802, allocations: 4 kB / 415.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.441e-05/0.2802, allocations: 7.984 kB / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.691e-06/0.2802, allocations: 7.938 kB / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.2802, allocations: 0 / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005912/0.2808, allocations: 313 kB / 416.2 MB, free: 9.707 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.889e-05/0.2809, allocations: 93.02 kB / 416.3 MB, free: 9.598 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.826e-05/0.2809, allocations: 0 / 416.3 MB, free: 9.598 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001098/0.281, allocations: 12.03 kB / 416.4 MB, free: 9.586 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.459e-05/0.281, allocations: 15.98 kB / 416.4 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.2811, allocations: 4 kB / 416.4 MB, free: 9.566 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.636e-05/0.2812, allocations: 119.2 kB / 416.5 MB, free: 9.449 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2812, allocations: 3.938 kB / 416.5 MB, free: 9.445 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002497/0.2814, allocations: 23.94 kB / 416.5 MB, free: 9.422 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (v.u,positionSmoothed.y,a.u) * 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 (12): * Single equations (assignments): 12 * 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.0008685/0.2823, allocations: 0.839 MB / 417.4 MB, free: 8.551 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003681/0.2827, allocations: 126.9 kB / 417.5 MB, free: 8.43 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2827, allocations: 0 / 417.5 MB, free: 8.43 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001791/0.2829, allocations: 67.89 kB / 417.5 MB, free: 8.363 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003844/0.2833, allocations: 43.95 kB / 417.6 MB, free: 8.324 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002461/0.2857, allocations: 1.95 MB / 419.5 MB, free: 6.262 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003277/0.2861, allocations: 0.7123 MB / 420.2 MB, free: 5.523 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.369e-05/0.2861, allocations: 13.42 kB / 420.3 MB, free: 5.512 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.628e-05/0.2862, allocations: 39.42 kB / 420.3 MB, free: 5.473 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2862, allocations: 0 / 420.3 MB, free: 5.473 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02549/0.3117, allocations: 3.326 MB / 423.6 MB, free: 2.25 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.659/7.971, allocations: 22.56 kB / 423.6 MB, free: 2.234 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SlewRateLimiter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SlewRateLimiter.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SlewRateLimiter_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_SlewRateLimiter.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1)