Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001581/0.001581, allocations: 210.7 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.511/1.511, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1864/0.1864, allocations: 38.55 MB / 352.5 MB, free: 12.32 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002199/0.002199, allocations: 68.08 kB / 492.5 MB, free: 4.703 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3216/0.3238, allocations: 62.47 MB / 0.5419 GB, free: 428 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.008166/0.332, allocations: 5.513 MB / 0.5473 GB, free: 12.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003978/0.3359, allocations: 2.135 MB / 0.5494 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003456/0.3363, allocations: 27.75 kB / 0.5494 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005616/0.3368, allocations: 159.9 kB / 0.5496 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001085/0.3379, allocations: 463.7 kB / 0.55 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006271/0.3386, allocations: 242.1 kB / 0.5503 GB, free: 9.906 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001195/0.3398, allocations: 0.8638 MB / 0.5511 GB, free: 9.402 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005045/0.3403, allocations: 383.5 kB / 0.5515 GB, free: 9.141 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005231/0.3408, allocations: 365.8 kB / 0.5518 GB, free: 8.93 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004908/0.3413, allocations: 341.2 kB / 0.5521 GB, free: 8.727 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.175e-05/0.3414, allocations: 54.91 kB / 0.5522 GB, free: 8.727 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002865/0.3416, allocations: 142.9 kB / 0.5523 GB, free: 8.688 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001963/0.3418, allocations: 188.6 kB / 0.5525 GB, free: 8.551 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002669/0.3421, allocations: 248.3 kB / 0.5528 GB, free: 8.402 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009552/0.3431, allocations: 0.7923 MB / 0.5535 GB, free: 7.852 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.87e-06/0.3431, allocations: 5.031 kB / 0.5535 GB, free: 7.848 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3431, allocations: 4 kB / 0.5535 GB, free: 7.844 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.031e-05/0.3431, allocations: 0 / 0.5535 GB, free: 7.844 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001685/0.3448, allocations: 0.8581 MB / 0.5544 GB, free: 7.168 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.3448, allocations: 16.98 kB / 0.5544 GB, free: 7.16 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001036/0.3449, allocations: 81.69 kB / 0.5545 GB, free: 7.086 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001221/0.345, allocations: 74.61 kB / 0.5545 GB, free: 7.043 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009608/0.346, allocations: 471.4 kB / 0.555 GB, free: 6.672 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.672e-05/0.346, allocations: 30.66 kB / 0.555 GB, free: 6.66 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.3461, allocations: 45.38 kB / 0.5551 GB, free: 6.645 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008539/0.347, allocations: 0.5508 MB / 0.5556 GB, free: 6.238 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.961e-05/0.347, allocations: 1.094 kB / 0.5556 GB, free: 6.238 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.708e-05/0.3471, allocations: 16.34 kB / 0.5556 GB, free: 6.227 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.132e-05/0.3471, allocations: 19.94 kB / 0.5556 GB, free: 6.223 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005678/0.3477, allocations: 345.2 kB / 0.556 GB, free: 5.906 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002681/0.3504, allocations: 1.888 MB / 0.5578 GB, free: 3.914 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004953/0.3509, allocations: 225.8 kB / 0.558 GB, free: 3.668 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001427/0.351, allocations: 74.67 kB / 0.5581 GB, free: 3.586 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.056e-05/0.3511, allocations: 4 kB / 0.5581 GB, free: 3.582 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003075/0.3514, allocations: 168.9 kB / 0.5583 GB, free: 3.398 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 2.184e-06/0.3514, allocations: 0 / 0.5583 GB, free: 3.398 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001902/0.3533, allocations: 0.8658 MB / 0.5591 GB, free: 2.496 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/0.3534, allocations: 144.5 kB / 0.5592 GB, free: 2.324 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006062/0.354, allocations: 449.8 kB / 0.5597 GB, free: 1.879 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.22e-05/0.354, allocations: 29.7 kB / 0.5597 GB, free: 1.844 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002486/0.3543, allocations: 304.2 kB / 0.56 GB, free: 1.539 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.94e-05/0.3544, allocations: 99.25 kB / 0.5601 GB, free: 1.441 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001204/0.3545, allocations: 70.09 kB / 0.5602 GB, free: 1.367 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002066/0.3547, allocations: 362.7 kB / 0.5605 GB, free: 1.004 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001665/0.3549, allocations: 84.83 kB / 0.5606 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002948/0.3552, allocations: 251.1 kB / 0.5608 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004552/0.3556, allocations: 325 kB / 0.5611 GB, free: 240 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.3556, allocations: 4 kB / 0.5611 GB, free: 236 kB / 398.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008999/0.3565, allocations: 437.9 kB / 0.5615 GB, free: 15.79 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.3565, allocations: 8 kB / 0.5616 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.3565, allocations: 4 kB / 0.5616 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004144/0.357, allocations: 93.03 kB / 0.5616 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002551/0.3572, allocations: 75.91 kB / 0.5617 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002153/0.3594, allocations: 1.714 MB / 0.5634 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000305/0.3597, allocations: 19.94 kB / 0.5634 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.827e-05/0.3597, allocations: 20 kB / 0.5634 GB, free: 13.74 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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 {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003013/0.36, allocations: 213.7 kB / 0.5636 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.986e-05/0.3601, allocations: 51.61 kB / 0.5637 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006145/0.3607, allocations: 276.5 kB / 0.5639 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.3607, allocations: 4 kB / 0.564 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.3607, allocations: 7.984 kB / 0.564 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.3607, allocations: 0 / 0.564 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001263/0.362, allocations: 0.7167 MB / 0.5647 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.362, allocations: 7.875 kB / 0.5647 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002624/0.3623, allocations: 47.91 kB / 0.5647 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002208/0.3625, allocations: 44.81 kB / 0.5648 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.138e-05/0.3625, allocations: 8 kB / 0.5648 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001404/0.3639, allocations: 1.436 MB / 0.5662 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3639, allocations: 0 / 0.5662 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007545/0.3647, allocations: 477.5 kB / 0.5666 GB, free: 10.26 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001742/0.3648, allocations: 67.67 kB / 0.5667 GB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.276e-05/0.3649, allocations: 4 kB / 0.5667 GB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00023/0.3651, allocations: 20.05 kB / 0.5667 GB, free: 10.17 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.526e-05/0.3652, allocations: 19.95 kB / 0.5667 GB, free: 10.15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.192e-05/0.3652, allocations: 12 kB / 0.5667 GB, free: 10.14 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003847/0.3656, allocations: 307.1 kB / 0.567 GB, free: 9.84 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3656, allocations: 0 / 0.567 GB, free: 9.84 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006198/0.3662, allocations: 127.9 kB / 0.5672 GB, free: 9.715 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002853/0.3691, allocations: 1.405 MB / 0.5685 GB, free: 8.473 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009416/0.37, allocations: 387 kB / 0.5689 GB, free: 8.082 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.37, allocations: 4 kB / 0.5689 GB, free: 8.078 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003916/0.3704, allocations: 226.6 kB / 0.5691 GB, free: 7.844 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007459/0.3712, allocations: 137.3 kB / 0.5692 GB, free: 7.715 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006304/0.3775, allocations: 4.291 MB / 0.5734 GB, free: 3.215 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003163/0.3778, allocations: 289.7 kB / 0.5737 GB, free: 2.906 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002723/0.378, allocations: 68.22 kB / 0.5738 GB, free: 2.84 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002582/0.3783, allocations: 175.4 kB / 0.5739 GB, free: 2.668 MB / 414.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3783, allocations: 0 / 0.5739 GB, free: 2.668 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0723/0.4506, allocations: 13 MB / 0.5866 GB, free: 5.809 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.57/14.02, allocations: 9.344 kB / 0.5866 GB, free: 5.805 MB / 430.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.13023997610435] Failed to read output from testmodel.py, exit status != 0: 14.210891006980091 14.231494765 13.884981321 Calling exit ...