Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00136/0.00136, allocations: 117.2 kB / 17.78 MB, free: 5.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001376/0.001376, allocations: 200.6 kB / 18.72 MB, free: 4.438 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.434/1.434, allocations: 227.7 MB / 247.2 MB, free: 10.2 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.001986/0.001986, allocations: 63.91 kB / 358.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3028/0.3048, allocations: 50.54 MB / 409 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004345/0.3092, allocations: 2.547 MB / 411.6 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002194/0.3114, allocations: 1.135 MB / 412.7 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002018/0.3117, allocations: 4 kB / 412.7 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003411/0.312, allocations: 71.42 kB / 412.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005423/0.3126, allocations: 166.9 kB / 413 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004602/0.3131, allocations: 183.6 kB / 413.1 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005835/0.3137, allocations: 0.5179 MB / 413.7 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000214/0.3139, allocations: 96.91 kB / 413.8 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003804/0.3143, allocations: 235.4 kB / 414 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003543/0.3146, allocations: 271.1 kB / 414.2 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.016e-05/0.3147, allocations: 40 kB / 414.3 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002803/0.315, allocations: 143.9 kB / 414.4 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001565/0.3152, allocations: 115.6 kB / 414.5 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002077/0.3154, allocations: 199.1 kB / 414.7 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006885/0.3161, allocations: 0.54 MB / 415.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.3161, allocations: 0 / 415.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3161, allocations: 4 kB / 415.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.226e-05/0.3161, allocations: 0 / 415.3 MB, free: 11.11 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.0014/0.3175, allocations: 0.7282 MB / 416 MB, free: 10.33 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.3176, allocations: 8.031 kB / 416 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.374e-05/0.3177, allocations: 74.72 kB / 416.1 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004199/0.3181, allocations: 64.67 kB / 416.1 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005688/0.3187, allocations: 311.8 kB / 416.5 MB, free: 9.836 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001405/0.3189, allocations: 88.61 kB / 416.5 MB, free: 9.738 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.097e-05/0.3189, allocations: 40.27 kB / 416.6 MB, free: 9.699 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008338/0.3198, allocations: 424.8 kB / 417 MB, free: 9.273 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.955e-05/0.3198, allocations: 0 / 417 MB, free: 9.273 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.475e-05/0.3199, allocations: 16 kB / 417 MB, free: 9.258 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.3199, allocations: 4 kB / 417 MB, free: 9.254 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001036/0.3209, allocations: 474.2 kB / 417.5 MB, free: 8.793 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001799/0.3227, allocations: 0.9893 MB / 418.5 MB, free: 7.746 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009025/0.3236, allocations: 408.4 kB / 418.9 MB, free: 7.336 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004819/0.3241, allocations: 222.1 kB / 419.1 MB, free: 7.117 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.081e-05/0.3242, allocations: 8.438 kB / 419.1 MB, free: 7.109 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/0.3242, allocations: 35 kB / 419.1 MB, free: 7.066 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.124e-06/0.3242, allocations: 0 / 419.1 MB, free: 7.066 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.00566/0.3299, allocations: 2.172 MB / 421.3 MB, free: 4.785 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.378e-05/0.33, allocations: 81.67 kB / 421.4 MB, free: 4.688 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003754/0.3304, allocations: 277 kB / 421.6 MB, free: 4.406 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.708e-05/0.3305, allocations: 33.7 kB / 421.7 MB, free: 4.367 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.3306, allocations: 141.2 kB / 421.8 MB, free: 4.227 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00016/0.3307, allocations: 186.4 kB / 422 MB, free: 4.043 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001701/0.3309, allocations: 90.23 kB / 422.1 MB, free: 3.949 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.3311, allocations: 342.8 kB / 422.4 MB, free: 3.605 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004676/0.3316, allocations: 197 kB / 422.6 MB, free: 3.414 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004997/0.3321, allocations: 240.6 kB / 422.8 MB, free: 3.168 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008728/0.333, allocations: 384.3 kB / 423.2 MB, free: 2.789 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.333, allocations: 0 / 423.2 MB, free: 2.789 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001397/0.3344, allocations: 0.6098 MB / 423.8 MB, free: 2.168 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.117e-05/0.3344, allocations: 11.94 kB / 423.8 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.3344, allocations: 0 / 423.8 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008686/0.3353, allocations: 298.6 kB / 424.1 MB, free: 1.863 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003364/0.3357, allocations: 79.88 kB / 424.2 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004418/0.3401, allocations: 2.951 MB / 427.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003971/0.3405, allocations: 27.97 kB / 427.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.07e-05/0.3406, allocations: 23.98 kB / 427.2 MB, free: 14.64 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (33): * 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: 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,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002459/0.3409, allocations: 157.7 kB / 427.4 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.341, allocations: 31.81 kB / 427.4 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001098/0.3411, allocations: 59.44 kB / 427.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.3411, allocations: 4 kB / 427.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.3411, allocations: 4.062 kB / 427.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/0.3411, allocations: 3.984 kB / 427.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002406/0.3435, allocations: 1.286 MB / 428.8 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.3436, allocations: 0 / 428.8 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003395/0.3439, allocations: 71.97 kB / 428.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007719/0.3447, allocations: 292.5 kB / 429.1 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.099e-05/0.3448, allocations: 19.97 kB / 429.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00405/0.3488, allocations: 2.848 MB / 432 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.3489, allocations: 0 / 432 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002026/0.3509, allocations: 0.9545 MB / 432.9 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002279/0.3511, allocations: 164.9 kB / 433.1 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.431e-05/0.3512, allocations: 15.94 kB / 433.1 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003055/0.3515, allocations: 27.97 kB / 433.1 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002121/0.3518, allocations: 72.39 kB / 433.2 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.153e-05/0.3518, allocations: 19.98 kB / 433.2 MB, free: 8.379 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002825/0.3521, allocations: 208.5 kB / 433.4 MB, free: 8.176 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3521, allocations: 3.938 kB / 433.4 MB, free: 8.172 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006565/0.3528, allocations: 147.9 kB / 433.6 MB, free: 8.027 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (31): * Single equations (assignments): 30 * 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.003717/0.3565, allocations: 1.791 MB / 435.4 MB, free: 6.336 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001676/0.3582, allocations: 0.6955 MB / 436.1 MB, free: 5.629 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.3582, allocations: 0 / 436.1 MB, free: 5.629 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009574/0.3592, allocations: 483.6 kB / 436.5 MB, free: 5.148 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005207/0.3597, allocations: 44.36 kB / 436.6 MB, free: 5.105 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006688/0.3665, allocations: 3.823 MB / 440.4 MB, free: 1.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004838/0.367, allocations: 0.8007 MB / 441.2 MB, free: 356 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000308/0.3673, allocations: 82.89 kB / 441.3 MB, free: 268 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002221/0.3675, allocations: 103.4 kB / 441.4 MB, free: 164 kB / 350.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3675, allocations: 4 kB / 441.4 MB, free: 160 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04728/0.4148, allocations: 11.63 MB / 453 MB, free: 4.719 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.39/12.81, allocations: 10.38 kB / 453 MB, free: 4.715 MB / 366.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv --start-time 0 --stop-time 0.5 --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_LossyGearDemo1.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1)