Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001304/0.001304, allocations: 118.2 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001449/0.00145, allocations: 206 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.457/1.457, allocations: 227.7 MB / 247.2 MB, free: 10.18 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.001984/0.001984, allocations: 59.91 kB / 358.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2805, allocations: 50.55 MB / 409.1 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003999/0.2845, allocations: 2.456 MB / 411.5 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001863/0.2864, allocations: 1.049 MB / 412.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001524/0.2866, allocations: 7.938 kB / 412.6 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003086/0.2869, allocations: 59.52 kB / 412.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004548/0.2874, allocations: 152 kB / 412.8 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004159/0.2878, allocations: 162.7 kB / 412.9 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005424/0.2884, allocations: 474.7 kB / 413.4 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001695/0.2886, allocations: 64.7 kB / 413.5 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002487/0.2888, allocations: 207.5 kB / 413.7 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003344/0.2892, allocations: 239.2 kB / 413.9 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.423e-05/0.2892, allocations: 44 kB / 413.9 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002594/0.2895, allocations: 123.9 kB / 414.1 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001482/0.2897, allocations: 115.6 kB / 414.2 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001798/0.2899, allocations: 171.2 kB / 414.3 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006334/0.2905, allocations: 497.2 kB / 414.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2905, allocations: 0 / 414.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.948e-06/0.2905, allocations: 4 kB / 414.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.146e-05/0.2905, allocations: 0 / 414.8 MB, free: 11.59 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001265/0.2918, allocations: 0.6738 MB / 415.5 MB, free: 10.87 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.2919, allocations: 8.031 kB / 415.5 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.521e-05/0.292, allocations: 78.59 kB / 415.6 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003076/0.2923, allocations: 44.73 kB / 415.6 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005213/0.2928, allocations: 304.7 kB / 415.9 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001442/0.293, allocations: 92.52 kB / 416 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.079e-05/0.293, allocations: 24.38 kB / 416 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007505/0.2938, allocations: 385.1 kB / 416.4 MB, free: 9.867 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.231e-05/0.2938, allocations: 7.953 kB / 416.4 MB, free: 9.859 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.596e-05/0.2939, allocations: 8 kB / 416.4 MB, free: 9.852 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.521e-05/0.2939, allocations: 11.98 kB / 416.5 MB, free: 9.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009047/0.2948, allocations: 425.9 kB / 416.9 MB, free: 9.426 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002181/0.297, allocations: 1.257 MB / 418.1 MB, free: 8.094 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007397/0.2978, allocations: 338.5 kB / 418.5 MB, free: 7.754 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004012/0.2982, allocations: 184.8 kB / 418.6 MB, free: 7.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.834e-05/0.2982, allocations: 8.156 kB / 418.6 MB, free: 7.562 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.776e-05/0.2983, allocations: 43.27 kB / 418.7 MB, free: 7.512 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 2.605e-06/0.2983, allocations: 0 / 418.7 MB, free: 7.512 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.005086/0.3034, allocations: 1.91 MB / 420.6 MB, free: 5.488 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.598e-05/0.3035, allocations: 92.8 kB / 420.7 MB, free: 5.379 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003326/0.3038, allocations: 242.4 kB / 420.9 MB, free: 5.133 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.392e-05/0.3039, allocations: 33.7 kB / 421 MB, free: 5.094 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.304, allocations: 140.8 kB / 421.1 MB, free: 4.953 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001334/0.3041, allocations: 158.7 kB / 421.2 MB, free: 4.797 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001523/0.3043, allocations: 86.08 kB / 421.3 MB, free: 4.707 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.3044, allocations: 338.8 kB / 421.7 MB, free: 4.367 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003866/0.3048, allocations: 172.8 kB / 421.8 MB, free: 4.199 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004296/0.3053, allocations: 221.9 kB / 422 MB, free: 3.969 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007481/0.306, allocations: 335.2 kB / 422.4 MB, free: 3.625 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.306, allocations: 0 / 422.4 MB, free: 3.625 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001259/0.3073, allocations: 0.5553 MB / 422.9 MB, free: 3.059 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.3073, allocations: 4 kB / 422.9 MB, free: 3.055 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.3074, allocations: 4 kB / 422.9 MB, free: 3.051 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008591/0.3082, allocations: 300.7 kB / 423.2 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002585/0.3085, allocations: 51.91 kB / 423.3 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004176/0.3127, allocations: 2.902 MB / 426.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002916/0.313, allocations: 28 kB / 426.2 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.384e-05/0.3131, allocations: 23.98 kB / 426.2 MB, free: 15.61 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: 7 (gear.ideal,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0002184/0.3133, allocations: 145.8 kB / 426.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.313e-05/0.3134, allocations: 31.75 kB / 426.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001003/0.3135, allocations: 50.98 kB / 426.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.3135, allocations: 8.062 kB / 426.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3135, allocations: 0 / 426.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.3135, allocations: 7.922 kB / 426.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001968/0.3155, allocations: 1.105 MB / 427.6 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.3155, allocations: 0 / 427.6 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002318/0.3158, allocations: 51.89 kB / 427.6 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007742/0.3165, allocations: 288.8 kB / 427.9 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.177e-05/0.3166, allocations: 15.92 kB / 427.9 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00409/0.3207, allocations: 2.846 MB / 430.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.867e-06/0.3207, allocations: 4 kB / 430.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001681/0.3224, allocations: 0.8161 MB / 431.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001837/0.3226, allocations: 149 kB / 431.7 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.629e-05/0.3227, allocations: 11.94 kB / 431.8 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002576/0.323, allocations: 27.97 kB / 431.8 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001735/0.3232, allocations: 59.91 kB / 431.8 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-05/0.3232, allocations: 15.98 kB / 431.9 MB, free: 9.746 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002415/0.3235, allocations: 192.8 kB / 432 MB, free: 9.559 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3235, allocations: 0 / 432 MB, free: 9.559 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006488/0.3241, allocations: 131.9 kB / 432.2 MB, free: 9.43 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003325/0.3275, allocations: 1.661 MB / 433.8 MB, free: 7.867 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0014/0.3289, allocations: 0.6252 MB / 434.5 MB, free: 7.227 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.3289, allocations: 0 / 434.5 MB, free: 7.227 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008374/0.3298, allocations: 429.1 kB / 434.9 MB, free: 6.793 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004745/0.3303, allocations: 43.89 kB / 434.9 MB, free: 6.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005786/0.336, allocations: 3.417 MB / 438.3 MB, free: 3.223 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004376/0.3365, allocations: 0.78 MB / 439.1 MB, free: 2.414 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002485/0.3368, allocations: 78.88 kB / 439.2 MB, free: 2.336 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001894/0.337, allocations: 91.39 kB / 439.3 MB, free: 2.246 MB / 350.1 MB Notification: Performance of SimCode: time 1.032e-06/0.337, allocations: 0 / 439.3 MB, free: 2.246 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0423/0.3793, allocations: 10.54 MB / 449.8 MB, free: 7.895 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.21/12.59, allocations: 8 kB / 449.8 MB, free: 7.887 MB / 366.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_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_Rotational_Examples_LossyGearDemo3.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1)