Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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.001404/0.001404, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001501/0.001501, allocations: 203.6 kB / 23.73 MB, free: 4.379 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.475/1.475, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1956/0.1956, allocations: 38.55 MB / 352.5 MB, free: 12.38 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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_pm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",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.003253/0.003253, allocations: 71.89 kB / 492.5 MB, free: 4.691 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3258/0.329, allocations: 62.47 MB / 0.5419 GB, free: 104 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.007599/0.3366, allocations: 5.088 MB / 0.5469 GB, free: 12.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002591/0.3392, allocations: 1.497 MB / 0.5484 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002758/0.3395, allocations: 27.5 kB / 0.5484 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004087/0.3399, allocations: 120.7 kB / 0.5485 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008376/0.3407, allocations: 312.2 kB / 0.5488 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003878/0.3411, allocations: 154.6 kB / 0.549 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009535/0.3421, allocations: 0.7135 MB / 0.5497 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004961/0.3426, allocations: 330.7 kB / 0.55 GB, free: 9.934 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004829/0.3431, allocations: 304 kB / 0.5503 GB, free: 9.762 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004809/0.3435, allocations: 294.8 kB / 0.5505 GB, free: 9.582 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.713e-05/0.3436, allocations: 45.31 kB / 0.5506 GB, free: 9.582 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001018/0.3437, allocations: 46 kB / 0.5506 GB, free: 9.582 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000207/0.3439, allocations: 164.3 kB / 0.5508 GB, free: 9.461 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002758/0.3442, allocations: 213.1 kB / 0.551 GB, free: 9.34 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008281/0.345, allocations: 0.605 MB / 0.5516 GB, free: 8.91 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.345, allocations: 3.938 kB / 0.5516 GB, free: 8.906 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.345, allocations: 1.156 kB / 0.5516 GB, free: 8.906 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.345, allocations: 0 / 0.5516 GB, free: 8.906 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001339/0.3464, allocations: 0.7214 MB / 0.5523 GB, free: 8.332 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.3464, allocations: 13.08 kB / 0.5523 GB, free: 8.328 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.422e-05/0.3465, allocations: 82.3 kB / 0.5524 GB, free: 8.254 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001043/0.3466, allocations: 62.94 kB / 0.5524 GB, free: 8.219 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007874/0.3474, allocations: 387.2 kB / 0.5528 GB, free: 7.914 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001254/0.3475, allocations: 92.02 kB / 0.5529 GB, free: 7.828 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.127e-05/0.3476, allocations: 45.03 kB / 0.5529 GB, free: 7.812 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008689/0.3485, allocations: 0.5046 MB / 0.5534 GB, free: 7.457 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.326e-05/0.3485, allocations: 1.125 kB / 0.5534 GB, free: 7.457 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.256e-05/0.3486, allocations: 16.16 kB / 0.5535 GB, free: 7.445 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.636e-05/0.3486, allocations: 11.5 kB / 0.5535 GB, free: 7.445 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006973/0.3493, allocations: 341 kB / 0.5538 GB, free: 7.277 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002409/0.3517, allocations: 1.811 MB / 0.5556 GB, free: 5.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004552/0.3521, allocations: 207.9 kB / 0.5558 GB, free: 5.535 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001924/0.3523, allocations: 93.47 kB / 0.5558 GB, free: 5.477 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.055e-05/0.3523, allocations: 3.594 kB / 0.5558 GB, free: 5.477 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.775e-05/0.3524, allocations: 36.66 kB / 0.5559 GB, free: 5.434 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 1.593e-06/0.3524, allocations: 5.094 kB / 0.5559 GB, free: 5.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001715/0.3541, allocations: 0.7785 MB / 0.5566 GB, free: 4.723 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.116e-05/0.3542, allocations: 106.8 kB / 0.5567 GB, free: 4.594 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004189/0.3546, allocations: 337.6 kB / 0.5571 GB, free: 4.254 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.991e-05/0.3546, allocations: 33.89 kB / 0.5571 GB, free: 4.215 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002399/0.3549, allocations: 280.2 kB / 0.5574 GB, free: 3.934 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.409e-05/0.3549, allocations: 83.27 kB / 0.5574 GB, free: 3.852 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.3551, allocations: 69.66 kB / 0.5575 GB, free: 3.777 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001982/0.3553, allocations: 346.8 kB / 0.5578 GB, free: 3.43 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002101/0.3555, allocations: 87.67 kB / 0.5579 GB, free: 3.344 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003081/0.3558, allocations: 217.1 kB / 0.5581 GB, free: 3.07 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001149/0.3569, allocations: 491.1 kB / 0.5586 GB, free: 2.535 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.3569, allocations: 3.938 kB / 0.5586 GB, free: 2.531 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008168/0.3577, allocations: 410 kB / 0.559 GB, free: 2.121 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.3578, allocations: 10.97 kB / 0.559 GB, free: 2.113 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.3578, allocations: 4 kB / 0.559 GB, free: 2.109 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003102/0.3581, allocations: 80.72 kB / 0.5591 GB, free: 2.027 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002484/0.3583, allocations: 68.09 kB / 0.5592 GB, free: 1.961 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00212/0.3605, allocations: 1.816 MB / 0.5609 GB, free: 36 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002285/0.3607, allocations: 15.95 kB / 0.5609 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.5e-05/0.3607, allocations: 16 kB / 0.561 GB, free: 4 kB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * 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.0002851/0.361, allocations: 201.7 kB / 0.5612 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.86e-05/0.3611, allocations: 35.75 kB / 0.5612 GB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.336e-05/0.3611, allocations: 39.25 kB / 0.5612 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.3612, allocations: 4 kB / 0.5612 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.353e-06/0.3612, allocations: 4.062 kB / 0.5612 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/0.3612, allocations: 0 / 0.5612 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001294/0.3625, allocations: 0.6739 MB / 0.5619 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3625, allocations: 0 / 0.5619 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002494/0.3627, allocations: 43.91 kB / 0.5619 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.177e-05/0.3628, allocations: 28.84 kB / 0.562 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.954e-05/0.3628, allocations: 8 kB / 0.562 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001117/0.3639, allocations: 1.283 MB / 0.5632 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.3639, allocations: 0 / 0.5632 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007809/0.3647, allocations: 0.5077 MB / 0.5637 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/0.3648, allocations: 39.84 kB / 0.5638 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.194e-05/0.3649, allocations: 11.98 kB / 0.5638 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001893/0.3651, allocations: 4 kB / 0.5638 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.735e-05/0.3651, allocations: 15.97 kB / 0.5638 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.3651, allocations: 16.03 kB / 0.5638 GB, free: 12.89 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002566/0.3654, allocations: 231.2 kB / 0.564 GB, free: 12.67 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3654, allocations: 0 / 0.564 GB, free: 12.67 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005466/0.3659, allocations: 91.94 kB / 0.5641 GB, free: 12.58 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * 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,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.001089/0.367, allocations: 1.042 MB / 0.5651 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008279/0.3679, allocations: 365.7 kB / 0.5655 GB, free: 11.13 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3679, allocations: 0 / 0.5655 GB, free: 11.13 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003653/0.3682, allocations: 215.8 kB / 0.5657 GB, free: 10.91 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006855/0.3689, allocations: 107.9 kB / 0.5658 GB, free: 10.81 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005517/0.3744, allocations: 3.694 MB / 0.5694 GB, free: 6.895 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002791/0.3747, allocations: 247.7 kB / 0.5696 GB, free: 6.629 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001892/0.3749, allocations: 55.23 kB / 0.5697 GB, free: 6.578 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002042/0.3751, allocations: 135.4 kB / 0.5698 GB, free: 6.445 MB / 414.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3751, allocations: 0 / 0.5698 GB, free: 6.445 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04324/0.4183, allocations: 9.408 MB / 0.579 GB, free: 13.25 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.26/13.68, allocations: 4.656 kB / 0.579 GB, free: 13.25 MB / 430.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.53711127099814] Failed to read output from testmodel.py, exit status != 0: 13.807428893982433 13.836830926 13.485857848 Calling exit ...