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.Hold.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.Hold,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Hold,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001446/0.001446, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001514/0.001514, allocations: 199.9 kB / 18.74 MB, free: 4.312 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.641/1.641, allocations: 227.7 MB / 247.2 MB, free: 10.15 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.001884/0.001884, allocations: 63.91 kB / 358.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3653/0.3672, allocations: 50.53 MB / 409.1 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Hold): time 0.003231/0.3705, allocations: 1.624 MB / 410.7 MB, free: 15.72 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001232/0.3717, allocations: 0.5647 MB / 411.3 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001133/0.3719, allocations: 0 / 411.3 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.174e-05/0.372, allocations: 7.938 kB / 411.3 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001764/0.3721, allocations: 11.86 kB / 411.3 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000414/0.3726, allocations: 71.38 kB / 411.4 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001451/0.3727, allocations: 55.84 kB / 411.4 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001366/0.3729, allocations: 19.98 kB / 411.4 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001445/0.373, allocations: 31.86 kB / 411.5 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.034e-05/0.3731, allocations: 27.84 kB / 411.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.923e-05/0.3731, allocations: 3.938 kB / 411.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.156e-05/0.3732, allocations: 12 kB / 411.5 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.74e-05/0.3733, allocations: 15.92 kB / 411.5 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.163e-05/0.3733, allocations: 31.75 kB / 411.5 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002397/0.3736, allocations: 66.67 kB / 411.6 MB, free: 14.8 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.3736, allocations: 0 / 411.6 MB, free: 14.8 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3736, allocations: 4 kB / 411.6 MB, free: 14.8 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.3736, allocations: 0 / 411.6 MB, free: 14.8 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006747/0.3743, allocations: 391 kB / 412 MB, free: 14.37 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.678e-05/0.3744, allocations: 8.031 kB / 412 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.3e-05/0.3744, allocations: 38.75 kB / 412 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001696/0.3746, allocations: 20.88 kB / 412.1 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003663/0.375, allocations: 214.1 kB / 412.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.375, allocations: 8.312 kB / 412.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.362e-05/0.375, allocations: 3.938 kB / 412.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003593/0.3754, allocations: 130.7 kB / 412.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.3754, allocations: 3.938 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.634e-05/0.3754, allocations: 8 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.3754, allocations: 0 / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001075/0.3756, allocations: 35.91 kB / 412.5 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000484/0.376, allocations: 291.4 kB / 412.7 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001614/0.3762, allocations: 94.42 kB / 412.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.569e-05/0.3763, allocations: 39.48 kB / 412.9 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.965e-05/0.3763, allocations: 4 kB / 412.9 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.19e-05/0.3764, allocations: 38.5 kB / 412.9 MB, free: 13.26 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.343e-06/0.3764, allocations: 4 kB / 412.9 MB, free: 13.26 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003512/0.3768, allocations: 97.55 kB / 413 MB, free: 13.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001854/0.377, allocations: 140.5 kB / 413.2 MB, free: 12.99 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001974/0.3772, allocations: 149.4 kB / 413.3 MB, free: 12.83 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.503e-05/0.3772, allocations: 26.2 kB / 413.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.753e-05/0.3773, allocations: 96.14 kB / 413.4 MB, free: 12.7 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.419e-05/0.3773, allocations: 7.938 kB / 413.4 MB, free: 12.69 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.087e-05/0.3774, allocations: 25.67 kB / 413.4 MB, free: 12.66 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001928/0.3776, allocations: 318.8 kB / 413.8 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.648e-05/0.3776, allocations: 12 kB / 413.8 MB, free: 12.33 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.547e-05/0.3777, allocations: 40.28 kB / 413.8 MB, free: 12.27 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000117/0.3778, allocations: 64.22 kB / 413.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3778, allocations: 0 / 413.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001601/0.378, allocations: 85.5 kB / 414 MB, free: 12.11 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/0.378, allocations: 8 kB / 414 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.378, allocations: 0 / 414 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.3781, allocations: 4 kB / 414 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.044e-05/0.3782, allocations: 15.92 kB / 414 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.3782, allocations: 7.938 kB / 414 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.386e-05/0.3782, allocations: 0 / 414 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.148e-05/0.3783, allocations: 4 kB / 414 MB, free: 12.07 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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.0001033/0.3784, allocations: 126 kB / 414.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.237e-05/0.3785, allocations: 57.59 kB / 414.2 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.587e-05/0.3785, allocations: 23.75 kB / 414.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.3785, allocations: 0 / 414.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.3785, allocations: 7.938 kB / 414.2 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.3785, allocations: 0 / 414.2 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002213/0.3788, allocations: 181.6 kB / 414.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3788, allocations: 0 / 414.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.666e-05/0.3788, allocations: 19.98 kB / 414.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.3789, allocations: 4.062 kB / 414.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.122e-05/0.3789, allocations: 4 kB / 414.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.3789, allocations: 0 / 414.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.3789, allocations: 7.875 kB / 414.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002392/0.3791, allocations: 210.1 kB / 414.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.448e-05/0.3792, allocations: 93.05 kB / 414.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.752e-05/0.3792, allocations: 4 kB / 414.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.454e-05/0.3793, allocations: 7.984 kB / 414.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.776e-05/0.3794, allocations: 3.938 kB / 414.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.312e-06/0.3794, allocations: 4 kB / 414.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.54e-05/0.3795, allocations: 111.2 kB / 414.8 MB, free: 11.1 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3795, allocations: 0 / 414.8 MB, free: 11.1 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002389/0.3797, allocations: 8 kB / 414.9 MB, free: 11.09 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * 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 (6): * Single equations (assignments): 6 * 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.0005534/0.3803, allocations: 0.7266 MB / 415.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000185/0.3805, allocations: 51.84 kB / 415.6 MB, free: 10.28 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3805, allocations: 0 / 415.6 MB, free: 10.28 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.553e-05/0.3805, allocations: 11.94 kB / 415.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004182/0.381, allocations: 32 kB / 415.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001805/0.3828, allocations: 1.462 MB / 417.1 MB, free: 8.656 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00037/0.3832, allocations: 0.6963 MB / 417.8 MB, free: 7.934 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.045e-05/0.3832, allocations: 4 kB / 417.8 MB, free: 7.93 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.593e-05/0.3833, allocations: 27.42 kB / 417.9 MB, free: 7.902 MB / 334.1 MB Notification: Performance of SimCode: time 3.336e-06/0.3833, allocations: 0 / 417.9 MB, free: 7.902 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02452/0.4078, allocations: 1.899 MB / 419.8 MB, free: 6.125 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.277/8.685, allocations: 11.09 kB / 419.8 MB, free: 6.117 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_Hold.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe 2>&1)