Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Oscillator.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.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001371/0.001371, allocations: 122.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001443/0.001443, allocations: 202 kB / 18.74 MB, free: 4.332 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.414/1.414, allocations: 227.7 MB / 247.2 MB, free: 10.21 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.001943/0.001943, allocations: 67.89 kB / 358.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.2646, allocations: 50.55 MB / 409.1 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.003904/0.2685, allocations: 2.448 MB / 411.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001255/0.2698, allocations: 0.6466 MB / 412.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001197/0.27, allocations: 4 kB / 412.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001471/0.2701, allocations: 43.58 kB / 412.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001345/0.2703, allocations: 67.34 kB / 412.3 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002985/0.2706, allocations: 75.84 kB / 412.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003281/0.2709, allocations: 258.9 kB / 412.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002208/0.2711, allocations: 89.34 kB / 412.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002051/0.2714, allocations: 115.6 kB / 412.8 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001704/0.2715, allocations: 107.5 kB / 412.9 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.218e-05/0.2716, allocations: 20 kB / 412.9 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.782e-05/0.2717, allocations: 28 kB / 412.9 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.027e-05/0.2717, allocations: 55.81 kB / 413 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001235/0.2718, allocations: 111.4 kB / 413.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003275/0.2722, allocations: 257.9 kB / 413.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2722, allocations: 0 / 413.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.416e-06/0.2722, allocations: 0 / 413.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.65e-06/0.2722, allocations: 3.938 kB / 413.4 MB, free: 13.06 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007742/0.273, allocations: 0.5338 MB / 413.9 MB, free: 12.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.273, allocations: 12.03 kB / 413.9 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.522e-05/0.2731, allocations: 50.73 kB / 414 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002168/0.2733, allocations: 44.73 kB / 414 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003135/0.2736, allocations: 244 kB / 414.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.175e-05/0.2737, allocations: 16.81 kB / 414.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.572e-05/0.2737, allocations: 32.31 kB / 414.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004075/0.2741, allocations: 221 kB / 414.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.2742, allocations: 0 / 414.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.523e-05/0.2742, allocations: 12 kB / 414.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-06/0.2742, allocations: 4 kB / 414.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003575/0.2746, allocations: 143.9 kB / 414.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00121/0.2758, allocations: 0.7833 MB / 415.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004182/0.2762, allocations: 205 kB / 415.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002277/0.2765, allocations: 101.7 kB / 415.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/0.2765, allocations: 4.125 kB / 415.8 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.219e-05/0.2765, allocations: 42.5 kB / 415.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.362e-06/0.2765, allocations: 0 / 415.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=26): time 0.001624/0.2782, allocations: 0.8757 MB / 416.7 MB, free: 9.469 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.436e-05/0.2782, allocations: 89.03 kB / 416.8 MB, free: 9.363 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001877/0.2784, allocations: 174.8 kB / 416.9 MB, free: 9.18 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.715e-05/0.2785, allocations: 37.7 kB / 417 MB, free: 9.137 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.405e-05/0.2786, allocations: 140.5 kB / 417.1 MB, free: 8.996 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.358e-05/0.2787, allocations: 103.1 kB / 417.2 MB, free: 8.895 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.614e-05/0.2787, allocations: 45.7 kB / 417.2 MB, free: 8.844 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.2789, allocations: 330.8 kB / 417.6 MB, free: 8.512 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001584/0.2791, allocations: 63.97 kB / 417.6 MB, free: 8.449 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001835/0.2793, allocations: 120.2 kB / 417.7 MB, free: 8.316 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003388/0.2796, allocations: 184.5 kB / 417.9 MB, free: 8.121 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.2796, allocations: 3.938 kB / 417.9 MB, free: 8.117 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004373/0.2801, allocations: 248 kB / 418.2 MB, free: 7.871 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.2801, allocations: 4 kB / 418.2 MB, free: 7.867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.2801, allocations: 4 kB / 418.2 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.2801, allocations: 0 / 418.2 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002524/0.2804, allocations: 59.91 kB / 418.2 MB, free: 7.805 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.2804, allocations: 7.938 kB / 418.2 MB, free: 7.797 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001062/0.2805, allocations: 11.98 kB / 418.3 MB, free: 7.785 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.011e-05/0.2805, allocations: 16.09 kB / 418.3 MB, free: 7.77 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 (32): * Single equations (assignments): 32 * 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.0001223/0.2807, allocations: 137.7 kB / 418.4 MB, free: 7.625 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.287e-05/0.2807, allocations: 27.8 kB / 418.4 MB, free: 7.598 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.045e-05/0.2808, allocations: 29.86 kB / 418.5 MB, free: 7.566 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.2808, allocations: 4 kB / 418.5 MB, free: 7.562 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.884e-06/0.2808, allocations: 4 kB / 418.5 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.2808, allocations: 0 / 418.5 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008492/0.2817, allocations: 0.5904 MB / 419.1 MB, free: 6.902 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.2817, allocations: 0 / 419.1 MB, free: 6.902 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002708/0.282, allocations: 55.91 kB / 419.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.282, allocations: 4 kB / 419.1 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.989e-05/0.282, allocations: 4 kB / 419.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.825e-06/0.282, allocations: 11.92 kB / 419.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.282, allocations: 0 / 419.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007085/0.2828, allocations: 494 kB / 419.6 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.717e-05/0.2828, allocations: 93.11 kB / 419.7 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.143e-05/0.2829, allocations: 11.94 kB / 419.7 MB, free: 6.199 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001767/0.2831, allocations: 23.89 kB / 419.7 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.258e-05/0.2831, allocations: 19.98 kB / 419.8 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.206e-05/0.2831, allocations: 4 kB / 419.8 MB, free: 6.152 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000117/0.2833, allocations: 140.9 kB / 419.9 MB, free: 6.016 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2833, allocations: 0 / 419.9 MB, free: 6.016 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003257/0.2836, allocations: 48 kB / 420 MB, free: 5.969 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (damper1.s_rel,damper1.v_rel,mass1.s,mass1.v) * 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 (26): * Single equations (assignments): 26 * 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.001011/0.2846, allocations: 1.046 MB / 421 MB, free: 4.883 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003855/0.285, allocations: 171.8 kB / 421.2 MB, free: 4.715 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.285, allocations: 0 / 421.2 MB, free: 4.715 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000182/0.2852, allocations: 95.84 kB / 421.3 MB, free: 4.621 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004675/0.2857, allocations: 43.73 kB / 421.3 MB, free: 4.582 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003345/0.289, allocations: 2.653 MB / 424 MB, free: 1.801 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003972/0.2894, allocations: 0.748 MB / 424.7 MB, free: 1.027 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001039/0.2896, allocations: 29.88 kB / 424.7 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.2897, allocations: 67.42 kB / 424.8 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2897, allocations: 0 / 424.8 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02756/0.3172, allocations: 4.465 MB / 429.3 MB, free: 12.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.335/8.653, allocations: 13.52 kB / 429.3 MB, free: 12.58 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Oscillator.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Oscillator_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_Mechanics_Translational_Examples_Oscillator.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1)