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.001888/0.001888, 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.002135/0.002135, allocations: 211.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.512/1.512, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.2902/0.2902, allocations: 38.55 MB / 352.5 MB, free: 12.32 MB / 286.1 MB " [Timeout remaining time 179] 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.003671/0.003671, allocations: 67.89 kB / 492.5 MB, free: 4.711 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3699/0.3736, allocations: 62.47 MB / 0.5419 GB, free: 232 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.008104/0.3817, allocations: 5.1 MB / 0.5469 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003125/0.3848, allocations: 1.492 MB / 0.5484 GB, free: 11.19 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003273/0.3851, allocations: 24.41 kB / 0.5484 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004443/0.3856, allocations: 116.8 kB / 0.5485 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008587/0.3864, allocations: 316.1 kB / 0.5488 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000443/0.3869, allocations: 158 kB / 0.549 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009142/0.3878, allocations: 0.6983 MB / 0.5496 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004571/0.3883, allocations: 338.4 kB / 0.55 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004828/0.3887, allocations: 303.9 kB / 0.5503 GB, free: 9.887 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004875/0.3892, allocations: 275.1 kB / 0.5505 GB, free: 9.727 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.723e-05/0.3893, allocations: 45.06 kB / 0.5506 GB, free: 9.727 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001011/0.3894, allocations: 50.97 kB / 0.5506 GB, free: 9.723 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001781/0.3896, allocations: 156.1 kB / 0.5508 GB, free: 9.609 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002645/0.3899, allocations: 216.9 kB / 0.551 GB, free: 9.484 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007964/0.3907, allocations: 0.6005 MB / 0.5516 GB, free: 9.059 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3907, allocations: 5 kB / 0.5516 GB, free: 9.055 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3907, allocations: 0 / 0.5516 GB, free: 9.055 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.515e-05/0.3907, allocations: 0 / 0.5516 GB, free: 9.055 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.001548/0.3922, allocations: 0.7183 MB / 0.5523 GB, free: 8.484 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.3923, allocations: 13.14 kB / 0.5523 GB, free: 8.48 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001056/0.3924, allocations: 85.36 kB / 0.5524 GB, free: 8.402 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001258/0.3925, allocations: 59.28 kB / 0.5524 GB, free: 8.371 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008402/0.3933, allocations: 395.8 kB / 0.5528 GB, free: 8.059 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001249/0.3935, allocations: 92.64 kB / 0.5529 GB, free: 7.973 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.547e-05/0.3936, allocations: 39.25 kB / 0.5529 GB, free: 7.961 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008895/0.3944, allocations: 0.5015 MB / 0.5534 GB, free: 7.613 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.25e-05/0.3945, allocations: 1.062 kB / 0.5534 GB, free: 7.613 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.273e-05/0.3945, allocations: 24.88 kB / 0.5534 GB, free: 7.594 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.837e-05/0.3945, allocations: 10.47 kB / 0.5534 GB, free: 7.594 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006551/0.3952, allocations: 336.9 kB / 0.5538 GB, free: 7.43 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002431/0.3976, allocations: 1.812 MB / 0.5555 GB, free: 5.832 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004784/0.3981, allocations: 208.3 kB / 0.5557 GB, free: 5.688 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002036/0.3983, allocations: 86.19 kB / 0.5558 GB, free: 5.633 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.533e-05/0.3983, allocations: 8.375 kB / 0.5558 GB, free: 5.629 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.651e-05/0.3984, allocations: 32.78 kB / 0.5558 GB, free: 5.59 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 2.174e-06/0.3984, allocations: 0 / 0.5558 GB, free: 5.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001762/0.4001, allocations: 0.7931 MB / 0.5566 GB, free: 4.918 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.746e-05/0.4002, allocations: 106.8 kB / 0.5567 GB, free: 4.789 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003636/0.4006, allocations: 333.6 kB / 0.557 GB, free: 4.449 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.955e-05/0.4006, allocations: 33.7 kB / 0.5571 GB, free: 4.41 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001948/0.4008, allocations: 268.2 kB / 0.5573 GB, free: 4.141 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.701e-05/0.4009, allocations: 91.25 kB / 0.5574 GB, free: 4.051 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001026/0.401, allocations: 65.91 kB / 0.5575 GB, free: 3.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.4011, allocations: 350.8 kB / 0.5578 GB, free: 3.629 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002066/0.4013, allocations: 83.73 kB / 0.5579 GB, free: 3.547 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003059/0.4016, allocations: 224.9 kB / 0.5581 GB, free: 3.266 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001167/0.4028, allocations: 488.2 kB / 0.5586 GB, free: 2.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.4028, allocations: 3.938 kB / 0.5586 GB, free: 2.727 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008738/0.4037, allocations: 418 kB / 0.559 GB, free: 2.309 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.4037, allocations: 8 kB / 0.559 GB, free: 2.301 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.4037, allocations: 4 kB / 0.559 GB, free: 2.297 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003167/0.404, allocations: 72.8 kB / 0.5591 GB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002539/0.4043, allocations: 67.91 kB / 0.5591 GB, free: 2.156 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002172/0.4065, allocations: 1.824 MB / 0.5609 GB, free: 232 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002513/0.4067, allocations: 15.95 kB / 0.5609 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.675e-05/0.4067, allocations: 20 kB / 0.5609 GB, free: 196 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.0002899/0.407, allocations: 193.7 kB / 0.5611 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.917e-05/0.4071, allocations: 39.81 kB / 0.5612 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.897e-05/0.4072, allocations: 35.2 kB / 0.5612 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.4072, allocations: 4 kB / 0.5612 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.4072, allocations: 4 kB / 0.5612 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.4072, allocations: 0 / 0.5612 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001303/0.4085, allocations: 0.6701 MB / 0.5619 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.4085, allocations: 4 kB / 0.5619 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002483/0.4087, allocations: 44 kB / 0.5619 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001044/0.4088, allocations: 32.78 kB / 0.5619 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.4089, allocations: 4 kB / 0.5619 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001087/0.41, allocations: 1.271 MB / 0.5632 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.41, allocations: 7.969 kB / 0.5632 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008111/0.4108, allocations: 0.5003 MB / 0.5637 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001132/0.4109, allocations: 43.84 kB / 0.5637 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.332e-05/0.4109, allocations: 7.984 kB / 0.5637 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002052/0.4111, allocations: 4 kB / 0.5637 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.175e-05/0.4112, allocations: 27.95 kB / 0.5638 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.897e-05/0.4112, allocations: 15.92 kB / 0.5638 GB, free: 13.09 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002623/0.4115, allocations: 235.2 kB / 0.564 GB, free: 12.86 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4115, allocations: 0 / 0.564 GB, free: 12.86 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005441/0.412, allocations: 95.94 kB / 0.5641 GB, free: 12.77 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.001136/0.4132, allocations: 1.03 MB / 0.5651 GB, free: 11.7 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008028/0.414, allocations: 370.5 kB / 0.5654 GB, free: 11.33 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.414, allocations: 0 / 0.5654 GB, free: 11.33 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003773/0.4144, allocations: 210.6 kB / 0.5656 GB, free: 11.11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007119/0.4151, allocations: 112.3 kB / 0.5658 GB, free: 11.01 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005623/0.4207, allocations: 3.697 MB / 0.5694 GB, free: 7.086 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002865/0.421, allocations: 251.7 kB / 0.5696 GB, free: 6.816 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002054/0.4212, allocations: 51.25 kB / 0.5697 GB, free: 6.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000207/0.4214, allocations: 135.4 kB / 0.5698 GB, free: 6.637 MB / 414.1 MB Notification: Performance of SimCode: time 8.02e-07/0.4214, allocations: 0 / 0.5698 GB, free: 6.637 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04316/0.4646, allocations: 9.288 MB / 0.5789 GB, free: 13.56 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.21/13.67, allocations: 11.55 kB / 0.5789 GB, free: 13.55 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.881715185940266] Failed to read output from testmodel.py, exit status != 0: 13.817379602231085 13.84254933 13.446995161 Calling exit ...