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.001553/0.001553, allocations: 114.9 kB / 17.84 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001973/0.001973, allocations: 205.2 kB / 18.79 MB, free: 4.141 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.432/1.432, allocations: 230.4 MB / 250 MB, free: 9.137 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.001867/0.001867, allocations: 63.84 kB / 366.9 MB, free: 7.578 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2753/0.2772, allocations: 53.31 MB / 420.2 MB, free: 8.293 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.004325/0.2815, allocations: 2.449 MB / 422.6 MB, free: 5.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001625/0.2831, allocations: 0.6583 MB / 423.3 MB, free: 5.176 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002163/0.2833, allocations: 7.938 kB / 423.3 MB, free: 5.168 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001788/0.2835, allocations: 35.66 kB / 423.3 MB, free: 5.133 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000161/0.2837, allocations: 67.34 kB / 423.4 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003354/0.284, allocations: 79.78 kB / 423.5 MB, free: 4.988 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003307/0.2843, allocations: 262.8 kB / 423.7 MB, free: 4.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002031/0.2845, allocations: 73.34 kB / 423.8 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002163/0.2848, allocations: 103.7 kB / 423.9 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001895/0.2849, allocations: 111.4 kB / 424 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.604e-05/0.285, allocations: 20 kB / 424 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.586e-05/0.2851, allocations: 24 kB / 424 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.26e-05/0.2851, allocations: 47.83 kB / 424.1 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001439/0.2853, allocations: 123.4 kB / 424.2 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003762/0.2856, allocations: 257.9 kB / 424.5 MB, free: 3.984 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.2856, allocations: 0 / 424.5 MB, free: 3.984 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.2856, allocations: 4 kB / 424.5 MB, free: 3.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.094e-06/0.2857, allocations: 0 / 424.5 MB, free: 3.98 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.0008717/0.2865, allocations: 0.5299 MB / 425 MB, free: 3.402 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.2866, allocations: 8.031 kB / 425 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.798e-05/0.2866, allocations: 54.73 kB / 425 MB, free: 3.332 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002268/0.2869, allocations: 48.73 kB / 425.1 MB, free: 3.285 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004123/0.2873, allocations: 247.9 kB / 425.3 MB, free: 3.004 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.596e-05/0.2873, allocations: 24.78 kB / 425.4 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.756e-05/0.2874, allocations: 20.33 kB / 425.4 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004262/0.2878, allocations: 225 kB / 425.6 MB, free: 2.73 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.2878, allocations: 0 / 425.6 MB, free: 2.73 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.973e-05/0.2878, allocations: 8 kB / 425.6 MB, free: 2.723 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.2878, allocations: 8 kB / 425.6 MB, free: 2.715 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003369/0.2882, allocations: 147.8 kB / 425.8 MB, free: 2.57 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001301/0.2895, allocations: 0.7833 MB / 426.5 MB, free: 1.719 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004396/0.2899, allocations: 189 kB / 426.7 MB, free: 1.516 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002271/0.2901, allocations: 89.67 kB / 426.8 MB, free: 1.422 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.684e-05/0.2902, allocations: 8.188 kB / 426.8 MB, free: 1.414 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.195e-05/0.2902, allocations: 42.48 kB / 426.9 MB, free: 1.363 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.193e-06/0.2902, allocations: 0 / 426.9 MB, free: 1.363 MB / 334.1 MB Notification: Performance of matching and sorting (n=26): time 0.001689/0.2919, allocations: 0.8712 MB / 427.7 MB, free: 412 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.501e-05/0.292, allocations: 85.05 kB / 427.8 MB, free: 308 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001937/0.2921, allocations: 178.8 kB / 428 MB, free: 116 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/0.2922, allocations: 29.7 kB / 428 MB, free: 80 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.2923, allocations: 144.5 kB / 428.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.064e-05/0.2924, allocations: 95.12 kB / 428.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.938e-05/0.2924, allocations: 49.7 kB / 428.3 MB, free: 15.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.2926, allocations: 334.8 kB / 428.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001589/0.2928, allocations: 63.97 kB / 428.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001726/0.2929, allocations: 108.8 kB / 428.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003319/0.2933, allocations: 188.5 kB / 429 MB, free: 15.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.2933, allocations: 3.938 kB / 429 MB, free: 15.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004359/0.2937, allocations: 248.1 kB / 429.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.2937, allocations: 8 kB / 429.2 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.2937, allocations: 4.094 kB / 429.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.2937, allocations: 4 kB / 429.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002587/0.294, allocations: 59.91 kB / 429.3 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.294, allocations: 0 / 429.3 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001071/0.2941, allocations: 15.98 kB / 429.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.728e-05/0.2941, allocations: 8 kB / 429.3 MB, free: 14.72 MB / 350.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.0001391/0.2943, allocations: 146.2 kB / 429.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.018e-05/0.2943, allocations: 23.86 kB / 429.5 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.659e-05/0.2944, allocations: 37.84 kB / 429.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.2944, allocations: 0 / 429.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.2944, allocations: 7.938 kB / 429.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.2944, allocations: 0 / 429.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008848/0.2953, allocations: 0.5787 MB / 430.1 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.2953, allocations: 4 kB / 430.1 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002683/0.2956, allocations: 64 kB / 430.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.2956, allocations: 0 / 430.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.2956, allocations: 8 kB / 430.2 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.718e-06/0.2956, allocations: 11.92 kB / 430.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2956, allocations: 3.938 kB / 430.2 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006758/0.2963, allocations: 493 kB / 430.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.399e-05/0.2964, allocations: 89.02 kB / 430.8 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.428e-05/0.2964, allocations: 8 kB / 430.8 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000165/0.2966, allocations: 15.97 kB / 430.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.881e-05/0.2966, allocations: 11.98 kB / 430.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.716e-05/0.2966, allocations: 16 kB / 430.8 MB, free: 13.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001122/0.2967, allocations: 136.9 kB / 431 MB, free: 12.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2967, allocations: 0 / 431 MB, free: 12.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003285/0.2971, allocations: 52 kB / 431 MB, free: 12.91 MB / 350.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.00102/0.2981, allocations: 1.039 MB / 432.1 MB, free: 11.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003947/0.2985, allocations: 171.9 kB / 432.2 MB, free: 11.67 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.761e-05/0.2985, allocations: 8 kB / 432.2 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001795/0.2987, allocations: 87.5 kB / 432.3 MB, free: 11.58 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004779/0.2992, allocations: 43.97 kB / 432.4 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003465/0.3026, allocations: 2.653 MB / 435 MB, free: 8.754 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003909/0.303, allocations: 0.7519 MB / 435.8 MB, free: 7.977 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000108/0.3031, allocations: 21.92 kB / 435.8 MB, free: 7.953 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001175/0.3032, allocations: 71.42 kB / 435.9 MB, free: 7.883 MB / 350.1 MB Notification: Performance of SimCode: time 1.202e-06/0.3032, allocations: 0 / 435.9 MB, free: 7.883 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02859/0.3318, allocations: 4.509 MB / 440.4 MB, free: 3.504 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.987/8.319, allocations: 9.75 kB / 440.4 MB, free: 3.5 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)