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.001505/0.001505, allocations: 117.9 kB / 17.84 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001779/0.001779, allocations: 199.5 kB / 18.79 MB, free: 4.156 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.45/1.45, allocations: 230.4 MB / 250 MB, free: 9.047 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.002199/0.002199, allocations: 71.83 kB / 366.8 MB, free: 7.559 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2854/0.2876, allocations: 53.31 MB / 420.2 MB, free: 8.293 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004105/0.2917, allocations: 2.469 MB / 422.6 MB, free: 5.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001926/0.2936, allocations: 1.061 MB / 423.7 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001329/0.2937, allocations: 4 kB / 423.7 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000312/0.294, allocations: 63.5 kB / 423.7 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004351/0.2945, allocations: 143 kB / 423.9 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004058/0.2949, allocations: 171.6 kB / 424.1 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005289/0.2954, allocations: 470.7 kB / 424.5 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001432/0.2955, allocations: 48.72 kB / 424.6 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002655/0.2958, allocations: 203.5 kB / 424.8 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003509/0.2962, allocations: 247.2 kB / 425 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.28e-05/0.2962, allocations: 36 kB / 425 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002733/0.2965, allocations: 139.9 kB / 425.2 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001485/0.2967, allocations: 99.72 kB / 425.3 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001911/0.2968, allocations: 179.2 kB / 425.4 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000639/0.2975, allocations: 0.4895 MB / 425.9 MB, free: 2.492 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2975, allocations: 0 / 425.9 MB, free: 2.492 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2975, allocations: 0 / 425.9 MB, free: 2.492 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.205e-06/0.2975, allocations: 3.938 kB / 425.9 MB, free: 2.488 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.00129/0.2988, allocations: 0.6777 MB / 426.6 MB, free: 1.762 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.2988, allocations: 12.03 kB / 426.6 MB, free: 1.75 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.104e-05/0.2989, allocations: 62.73 kB / 426.7 MB, free: 1.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003089/0.2992, allocations: 52.72 kB / 426.7 MB, free: 1.629 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005576/0.2998, allocations: 300.6 kB / 427 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001412/0.2999, allocations: 92.52 kB / 427.1 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.702e-05/0.3, allocations: 32.36 kB / 427.2 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007493/0.3008, allocations: 377.2 kB / 427.5 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.972e-05/0.3008, allocations: 3.953 kB / 427.5 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.773e-05/0.3008, allocations: 12 kB / 427.5 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.3008, allocations: 8 kB / 427.6 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008734/0.3017, allocations: 425.9 kB / 428 MB, free: 344 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002189/0.3039, allocations: 1.261 MB / 429.2 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007143/0.3046, allocations: 321.9 kB / 429.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003758/0.305, allocations: 164.8 kB / 429.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.553e-05/0.305, allocations: 12.08 kB / 429.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.708e-05/0.3051, allocations: 43.28 kB / 429.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.853e-06/0.3051, allocations: 0 / 429.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004917/0.31, allocations: 1.898 MB / 431.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.484e-05/0.31, allocations: 84.86 kB / 431.7 MB, free: 12.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003379/0.3104, allocations: 246.4 kB / 432 MB, free: 12.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.144e-05/0.3104, allocations: 33.7 kB / 432 MB, free: 12.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.3105, allocations: 144.8 kB / 432.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001338/0.3107, allocations: 150.7 kB / 432.3 MB, free: 11.76 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001623/0.3108, allocations: 90.06 kB / 432.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002104/0.3111, allocations: 338.8 kB / 432.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004462/0.3115, allocations: 164.8 kB / 432.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004342/0.3119, allocations: 225.9 kB / 433.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007102/0.3126, allocations: 339.2 kB / 433.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.3126, allocations: 0 / 433.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001263/0.3139, allocations: 0.5475 MB / 434 MB, free: 10.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.3139, allocations: 8 kB / 434 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.3139, allocations: 0 / 434 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000876/0.3148, allocations: 296.6 kB / 434.3 MB, free: 9.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002536/0.3151, allocations: 55.95 kB / 434.3 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004134/0.3192, allocations: 2.898 MB / 437.2 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002811/0.3195, allocations: 32.03 kB / 437.3 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.888e-05/0.3195, allocations: 15.98 kB / 437.3 MB, free: 6.578 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.0002141/0.3197, allocations: 161.7 kB / 437.4 MB, free: 6.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.9e-05/0.3198, allocations: 27.81 kB / 437.5 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001031/0.3199, allocations: 42.98 kB / 437.5 MB, free: 6.344 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.441e-06/0.3199, allocations: 7.938 kB / 437.5 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.3199, allocations: 7.938 kB / 437.5 MB, free: 6.328 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.3199, allocations: 4 kB / 437.5 MB, free: 6.324 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00199/0.3219, allocations: 1.094 MB / 438.6 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.3219, allocations: 0 / 438.6 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002343/0.3222, allocations: 43.97 kB / 438.7 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007479/0.3229, allocations: 292.8 kB / 438.9 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.184e-05/0.323, allocations: 15.92 kB / 439 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004214/0.3272, allocations: 2.852 MB / 441.8 MB, free: 1.836 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.3272, allocations: 0 / 441.8 MB, free: 1.836 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001652/0.3288, allocations: 0.8043 MB / 442.6 MB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001763/0.329, allocations: 145 kB / 442.8 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.161e-05/0.3291, allocations: 19.94 kB / 442.8 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002479/0.3293, allocations: 19.98 kB / 442.8 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001714/0.3295, allocations: 63.89 kB / 442.9 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.835e-05/0.3295, allocations: 19.98 kB / 442.9 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002403/0.3298, allocations: 184.8 kB / 443.1 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3298, allocations: 0 / 443.1 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006009/0.3304, allocations: 139.9 kB / 443.2 MB, free: 424 kB / 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.003339/0.3337, allocations: 1.647 MB / 444.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001416/0.3351, allocations: 0.5901 MB / 445.4 MB, free: 14.26 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3351, allocations: 0 / 445.4 MB, free: 14.26 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007624/0.3359, allocations: 417 kB / 445.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004617/0.3364, allocations: 50.5 kB / 445.9 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005671/0.342, allocations: 3.394 MB / 449.3 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000464/0.3425, allocations: 0.7722 MB / 450.1 MB, free: 9.488 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002328/0.3427, allocations: 70.92 kB / 450.1 MB, free: 9.418 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002053/0.3429, allocations: 95.38 kB / 450.2 MB, free: 9.324 MB / 366.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3429, allocations: 0 / 450.2 MB, free: 9.324 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04273/0.3857, allocations: 10.8 MB / 461 MB, free: 14.67 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.09/12.48, allocations: 3.984 kB / 461 MB, free: 14.66 MB / 382.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)