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.001751/0.001751, allocations: 118.8 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.002307/0.002307, allocations: 197.2 kB / 18.73 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.506/1.506, allocations: 227.7 MB / 247.2 MB, free: 10.16 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.001916/0.001916, allocations: 67.89 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2632, allocations: 50.54 MB / 409 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.003868/0.2671, allocations: 2.447 MB / 411.5 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001253/0.2684, allocations: 0.6466 MB / 412.1 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001352/0.2685, allocations: 7.938 kB / 412.1 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001674/0.2687, allocations: 35.66 kB / 412.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001471/0.2689, allocations: 71.33 kB / 412.2 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003013/0.2692, allocations: 83.83 kB / 412.3 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003255/0.2695, allocations: 250.8 kB / 412.6 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002054/0.2697, allocations: 105.3 kB / 412.7 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002023/0.2699, allocations: 99.7 kB / 412.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002008/0.2702, allocations: 111.5 kB / 412.9 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.018e-05/0.2702, allocations: 20 kB / 412.9 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.516e-05/0.2703, allocations: 27.94 kB / 412.9 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.827e-05/0.2703, allocations: 47.84 kB / 413 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001248/0.2705, allocations: 119.4 kB / 413.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003552/0.2708, allocations: 257.9 kB / 413.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.2708, allocations: 0 / 413.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2709, allocations: 0 / 413.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.2709, allocations: 4 kB / 413.3 MB, free: 13.05 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.0008269/0.2717, allocations: 0.526 MB / 413.9 MB, free: 12.47 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.2717, allocations: 12.03 kB / 413.9 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.653e-05/0.2718, allocations: 58.66 kB / 413.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002284/0.2721, allocations: 52.73 kB / 414 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003371/0.2724, allocations: 243.9 kB / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.091e-05/0.2724, allocations: 12.81 kB / 414.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.827e-05/0.2725, allocations: 28.33 kB / 414.3 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004173/0.2729, allocations: 217.1 kB / 414.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.2729, allocations: 0 / 414.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.19e-05/0.273, allocations: 12 kB / 414.5 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.273, allocations: 8 kB / 414.5 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003401/0.2733, allocations: 149.2 kB / 414.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001236/0.2746, allocations: 0.7833 MB / 415.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004198/0.275, allocations: 197 kB / 415.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002495/0.2753, allocations: 101.8 kB / 415.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.991e-05/0.2753, allocations: 12.17 kB / 415.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.111e-05/0.2753, allocations: 42.5 kB / 415.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 3.447e-06/0.2753, allocations: 0 / 415.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=26): time 0.001725/0.2771, allocations: 0.8705 MB / 416.6 MB, free: 9.449 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.753e-05/0.2772, allocations: 77.11 kB / 416.7 MB, free: 9.355 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001965/0.2774, allocations: 186.8 kB / 416.9 MB, free: 9.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.564e-05/0.2774, allocations: 29.7 kB / 416.9 MB, free: 9.125 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.2775, allocations: 140.5 kB / 417.1 MB, free: 8.984 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.285e-05/0.2776, allocations: 103.1 kB / 417.2 MB, free: 8.883 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.295e-05/0.2777, allocations: 49.7 kB / 417.2 MB, free: 8.828 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.2779, allocations: 330.8 kB / 417.5 MB, free: 8.496 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000165/0.278, allocations: 67.95 kB / 417.6 MB, free: 8.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001833/0.2782, allocations: 112.2 kB / 417.7 MB, free: 8.305 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003628/0.2786, allocations: 180.2 kB / 417.9 MB, free: 8.113 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.2786, allocations: 3.938 kB / 417.9 MB, free: 8.109 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000463/0.2791, allocations: 247.9 kB / 418.1 MB, free: 7.863 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.2791, allocations: 4 kB / 418.1 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.77e-06/0.2791, allocations: 0 / 418.1 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.2791, allocations: 8.094 kB / 418.2 MB, free: 7.852 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002522/0.2794, allocations: 63.91 kB / 418.2 MB, free: 7.789 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.2794, allocations: 4 kB / 418.2 MB, free: 7.785 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001137/0.2795, allocations: 11.98 kB / 418.2 MB, free: 7.773 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.828e-05/0.2796, allocations: 8 kB / 418.2 MB, free: 7.766 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.0001343/0.2797, allocations: 145.6 kB / 418.4 MB, free: 7.613 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.117e-05/0.2798, allocations: 23.86 kB / 418.4 MB, free: 7.59 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.953e-05/0.2798, allocations: 29.86 kB / 418.4 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.2798, allocations: 8 kB / 418.4 MB, free: 7.551 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.2799, allocations: 4 kB / 418.4 MB, free: 7.547 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.2799, allocations: 0 / 418.4 MB, free: 7.547 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008816/0.2808, allocations: 0.5826 MB / 419 MB, free: 6.898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.2808, allocations: 4 kB / 419 MB, free: 6.895 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002721/0.281, allocations: 64 kB / 419.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.2e-06/0.2811, allocations: 4 kB / 419.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.566e-05/0.2811, allocations: 0 / 419.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.093e-06/0.2811, allocations: 7.938 kB / 419.1 MB, free: 6.82 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2811, allocations: 0 / 419.1 MB, free: 6.82 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006963/0.2818, allocations: 497.9 kB / 419.6 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.877e-05/0.2819, allocations: 96.95 kB / 419.7 MB, free: 6.195 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.382e-05/0.2819, allocations: 8 kB / 419.7 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001618/0.2821, allocations: 11.97 kB / 419.7 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.209e-05/0.2822, allocations: 15.98 kB / 419.7 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.349e-05/0.2822, allocations: 12 kB / 419.7 MB, free: 6.148 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001196/0.2823, allocations: 136.9 kB / 419.9 MB, free: 6.016 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2823, allocations: 0 / 419.9 MB, free: 6.016 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000339/0.2827, allocations: 52 kB / 419.9 MB, free: 5.965 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.001052/0.2837, allocations: 1.039 MB / 421 MB, free: 4.887 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004104/0.2842, allocations: 182.8 kB / 421.1 MB, free: 4.711 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.2842, allocations: 4.188 kB / 421.1 MB, free: 4.707 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000182/0.2844, allocations: 99.97 kB / 421.2 MB, free: 4.609 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00048/0.2848, allocations: 36.16 kB / 421.3 MB, free: 4.574 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00361/0.2885, allocations: 2.668 MB / 423.9 MB, free: 1.777 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004111/0.2889, allocations: 0.748 MB / 424.7 MB, free: 1.004 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001019/0.289, allocations: 17.95 kB / 424.7 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001298/0.2891, allocations: 71.41 kB / 424.8 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2891, allocations: 0 / 424.8 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02971/0.3189, allocations: 4.459 MB / 429.2 MB, free: 12.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.245/8.564, allocations: 8 kB / 429.2 MB, free: 12.57 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_Oscillator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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)