Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0017/0.0017, allocations: 122.8 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.001937/0.001937, allocations: 201.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.422/1.422, 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.001908/0.001908, allocations: 59.89 kB / 358.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2918/0.2937, allocations: 50.54 MB / 409.1 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.009752/0.3035, allocations: 8.105 MB / 417.2 MB, free: 9.242 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004814/0.3084, allocations: 2.66 MB / 419.8 MB, free: 6.578 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000913/0.3094, allocations: 23.94 kB / 419.9 MB, free: 6.555 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001555/0.3109, allocations: 0.5558 MB / 420.4 MB, free: 5.996 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001282/0.3122, allocations: 468.3 kB / 420.9 MB, free: 5.535 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005083/0.3127, allocations: 255.7 kB / 421.1 MB, free: 5.285 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001649/0.3144, allocations: 1.47 MB / 422.6 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008494/0.3153, allocations: 0.5846 MB / 423.2 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009275/0.3162, allocations: 0.5486 MB / 423.7 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007537/0.317, allocations: 0.6027 MB / 424.3 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001715/0.3171, allocations: 136 kB / 424.5 MB, free: 1.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003659/0.3175, allocations: 172 kB / 424.6 MB, free: 1.742 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002497/0.3178, allocations: 287 kB / 424.9 MB, free: 1.461 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007024/0.3185, allocations: 0.6609 MB / 425.6 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002077/0.3206, allocations: 1.731 MB / 427.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.3206, allocations: 0 / 427.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3206, allocations: 0 / 427.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.807e-05/0.3206, allocations: 0 / 427.3 MB, free: 15.06 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002473/0.3231, allocations: 1.479 MB / 428.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/0.3231, allocations: 8.031 kB / 428.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001845/0.3233, allocations: 152.4 kB / 428.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000684/0.324, allocations: 196 kB / 429.1 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001331/0.3254, allocations: 0.746 MB / 429.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.469e-05/0.3255, allocations: 77.98 kB / 430 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001441/0.3256, allocations: 107.9 kB / 430.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00157/0.3272, allocations: 0.9269 MB / 431 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.578e-05/0.3272, allocations: 7.938 kB / 431 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.092e-05/0.3273, allocations: 43.98 kB / 431 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.831e-05/0.3273, allocations: 24 kB / 431.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00122/0.3286, allocations: 0.6325 MB / 431.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005215/0.3338, allocations: 3.896 MB / 435.6 MB, free: 6.414 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007405/0.3346, allocations: 445.8 kB / 436 MB, free: 5.953 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005977/0.3352, allocations: 261.4 kB / 436.3 MB, free: 5.695 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.785e-05/0.3352, allocations: 4.328 kB / 436.3 MB, free: 5.691 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.854e-05/0.3353, allocations: 42.89 kB / 436.3 MB, free: 5.641 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.255e-06/0.3353, allocations: 0 / 436.3 MB, free: 5.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.00288/0.3382, allocations: 1.427 MB / 437.8 MB, free: 4.141 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.435e-05/0.3383, allocations: 85.09 kB / 437.8 MB, free: 4.039 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001177/0.3394, allocations: 0.8214 MB / 438.7 MB, free: 3.207 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.437e-05/0.3395, allocations: 33.7 kB / 438.7 MB, free: 3.168 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000437/0.3399, allocations: 0.5696 MB / 439.3 MB, free: 2.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001281/0.3401, allocations: 166.6 kB / 439.4 MB, free: 2.426 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002169/0.3403, allocations: 134.6 kB / 439.6 MB, free: 2.289 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.3405, allocations: 334 kB / 439.9 MB, free: 1.957 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003359/0.3408, allocations: 165.9 kB / 440 MB, free: 1.797 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005655/0.3414, allocations: 456 kB / 440.5 MB, free: 1.215 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009771/0.3424, allocations: 0.6778 MB / 441.2 MB, free: 412 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.3424, allocations: 0 / 441.2 MB, free: 412 kB / 350.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001404/0.3438, allocations: 0.7671 MB / 441.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.3438, allocations: 11.59 kB / 441.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.68e-05/0.3439, allocations: 12 kB / 442 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002898/0.3441, allocations: 89.86 kB / 442 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004808/0.3446, allocations: 147.8 kB / 442.2 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002804/0.3475, allocations: 3.134 MB / 445.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005454/0.348, allocations: 40 kB / 445.4 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.975e-05/0.3481, allocations: 36 kB / 445.4 MB, free: 11.88 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004143/0.3485, allocations: 257.5 kB / 445.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001359/0.3486, allocations: 91.44 kB / 445.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009827/0.3496, allocations: 499.5 kB / 446.2 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.3496, allocations: 4 kB / 446.2 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.3497, allocations: 0 / 446.2 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.285e-06/0.3497, allocations: 11.92 kB / 446.2 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002195/0.3519, allocations: 1.435 MB / 447.7 MB, free: 9.484 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.3519, allocations: 0 / 447.7 MB, free: 9.484 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002998/0.3522, allocations: 67.91 kB / 447.7 MB, free: 9.418 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002151/0.3524, allocations: 77.61 kB / 447.8 MB, free: 9.336 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.497e-05/0.3525, allocations: 8.125 kB / 447.8 MB, free: 9.328 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002722/0.3552, allocations: 3.139 MB / 451 MB, free: 5.918 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3552, allocations: 0 / 451 MB, free: 5.918 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001305/0.3565, allocations: 0.7743 MB / 451.7 MB, free: 5.098 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003105/0.3568, allocations: 204.5 kB / 451.9 MB, free: 4.879 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.153e-05/0.3569, allocations: 16 kB / 452 MB, free: 4.863 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004006/0.3573, allocations: 19.98 kB / 452 MB, free: 4.844 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.396e-05/0.3574, allocations: 39.89 kB / 452 MB, free: 4.805 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.706e-05/0.3575, allocations: 16 kB / 452 MB, free: 4.789 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008077/0.3583, allocations: 0.5615 MB / 452.6 MB, free: 4.23 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3583, allocations: 0 / 452.6 MB, free: 4.23 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008546/0.3592, allocations: 204 kB / 452.8 MB, free: 4.031 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * 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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00172/0.3609, allocations: 1.346 MB / 454.1 MB, free: 2.633 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00128/0.3622, allocations: 0.687 MB / 454.8 MB, free: 1.922 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3622, allocations: 0 / 454.8 MB, free: 1.922 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006711/0.3629, allocations: 445.1 kB / 455.3 MB, free: 1.461 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001044/0.3639, allocations: 230.3 kB / 455.5 MB, free: 1.242 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01079/0.3747, allocations: 7.308 MB / 462.8 MB, free: 9.488 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006862/0.3754, allocations: 1.009 MB / 463.8 MB, free: 8.453 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004214/0.3759, allocations: 99.27 kB / 463.9 MB, free: 8.352 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004637/0.3764, allocations: 375.3 kB / 464.3 MB, free: 7.984 MB / 382.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3764, allocations: 3.938 kB / 464.3 MB, free: 7.98 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0792/0.4556, allocations: 19.1 MB / 483.4 MB, free: 5.203 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.79, allocations: 12.05 kB / 483.4 MB, free: 5.195 MB / 398.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1)