Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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.001363/0.001363, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.001472/0.001472, allocations: 214.2 kB / 23.74 MB, free: 4.656 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.462/1.462, allocations: 230.6 MB / 257.5 MB, free: 8.027 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.187/0.187, allocations: 38.52 MB / 352.4 MB, free: 12.57 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_ser,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",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.002149/0.002149, allocations: 67.88 kB / 492.5 MB, free: 4.902 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3245/0.3267, allocations: 62.46 MB / 0.542 GB, free: 464 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.007644/0.3343, allocations: 5.376 MB / 0.5472 GB, free: 12.28 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003628/0.338, allocations: 2.17 MB / 0.5494 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003657/0.3383, allocations: 18.47 kB / 0.5494 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005584/0.3389, allocations: 151.2 kB / 0.5495 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001077/0.34, allocations: 406.4 kB / 0.5499 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005901/0.3405, allocations: 219 kB / 0.5501 GB, free: 9.934 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009973/0.3415, allocations: 0.7135 MB / 0.5508 GB, free: 9.512 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004745/0.342, allocations: 335.2 kB / 0.5511 GB, free: 9.281 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005022/0.3425, allocations: 317.9 kB / 0.5514 GB, free: 9.098 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004522/0.343, allocations: 303.2 kB / 0.5517 GB, free: 8.906 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.11e-05/0.343, allocations: 46.72 kB / 0.5518 GB, free: 8.906 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002869/0.3433, allocations: 144.8 kB / 0.5519 GB, free: 8.859 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002241/0.3436, allocations: 152.7 kB / 0.5521 GB, free: 8.746 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003094/0.3439, allocations: 282 kB / 0.5523 GB, free: 8.551 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009331/0.3448, allocations: 0.6954 MB / 0.553 GB, free: 8.062 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.3448, allocations: 0 / 0.553 GB, free: 8.062 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3448, allocations: 1.125 kB / 0.553 GB, free: 8.062 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.585e-05/0.3448, allocations: 0 / 0.553 GB, free: 8.062 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001722/0.3465, allocations: 0.8079 MB / 0.5538 GB, free: 7.418 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.3466, allocations: 13.2 kB / 0.5538 GB, free: 7.414 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.795e-05/0.3467, allocations: 80.45 kB / 0.5539 GB, free: 7.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001134/0.3468, allocations: 60 kB / 0.5539 GB, free: 7.309 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000846/0.3476, allocations: 423.3 kB / 0.5543 GB, free: 6.969 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.153e-05/0.3477, allocations: 28.03 kB / 0.5544 GB, free: 6.957 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.104e-05/0.3477, allocations: 45.08 kB / 0.5544 GB, free: 6.938 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007253/0.3485, allocations: 457.7 kB / 0.5549 GB, free: 6.605 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.3485, allocations: 9.156 kB / 0.5549 GB, free: 6.598 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.888e-05/0.3485, allocations: 24.67 kB / 0.5549 GB, free: 6.578 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.3485, allocations: 9.094 kB / 0.5549 GB, free: 6.578 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004937/0.349, allocations: 275.3 kB / 0.5552 GB, free: 6.441 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002395/0.3514, allocations: 1.799 MB / 0.5569 GB, free: 4.848 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005302/0.352, allocations: 237.1 kB / 0.5571 GB, free: 4.691 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001455/0.3521, allocations: 83.36 kB / 0.5572 GB, free: 4.633 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.813e-05/0.3521, allocations: 11.45 kB / 0.5572 GB, free: 4.625 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003056/0.3525, allocations: 164.4 kB / 0.5574 GB, free: 4.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.503e-06/0.3525, allocations: 0 / 0.5574 GB, free: 4.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.001974/0.3544, allocations: 0.8602 MB / 0.5582 GB, free: 3.586 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001224/0.3546, allocations: 132.5 kB / 0.5584 GB, free: 3.426 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006224/0.3552, allocations: 417.8 kB / 0.5587 GB, free: 3.008 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.943e-05/0.3552, allocations: 33.7 kB / 0.5588 GB, free: 2.969 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002549/0.3555, allocations: 272.1 kB / 0.559 GB, free: 2.699 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000107/0.3556, allocations: 103.3 kB / 0.5591 GB, free: 2.598 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001213/0.3557, allocations: 69.64 kB / 0.5592 GB, free: 2.523 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002867/0.356, allocations: 354.8 kB / 0.5595 GB, free: 2.168 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001667/0.3562, allocations: 79.91 kB / 0.5596 GB, free: 2.09 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002956/0.3564, allocations: 220.2 kB / 0.5598 GB, free: 1.816 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004822/0.3569, allocations: 319.1 kB / 0.5601 GB, free: 1.449 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.3569, allocations: 0 / 0.5601 GB, free: 1.449 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001059/0.358, allocations: 429.5 kB / 0.5605 GB, free: 1.02 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.535e-05/0.358, allocations: 8.531 kB / 0.5606 GB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.463e-05/0.358, allocations: 8 kB / 0.5606 GB, free: 1.004 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006461/0.3587, allocations: 88.77 kB / 0.5606 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003926/0.3591, allocations: 67.91 kB / 0.5607 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003785/0.3629, allocations: 1.917 MB / 0.5626 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005097/0.3634, allocations: 27.94 kB / 0.5626 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.626e-05/0.3634, allocations: 15.94 kB / 0.5626 GB, free: 14.78 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (37): * 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: 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,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0003919/0.3638, allocations: 197.8 kB / 0.5628 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/0.3639, allocations: 43.72 kB / 0.5629 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000983/0.3649, allocations: 302 kB / 0.5631 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.375e-06/0.3649, allocations: 4 kB / 0.5631 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.3649, allocations: 4 kB / 0.5631 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.251e-05/0.3649, allocations: 3.984 kB / 0.5632 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001489/0.3664, allocations: 0.741 MB / 0.5639 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.3664, allocations: 0 / 0.5639 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002996/0.3667, allocations: 47.91 kB / 0.5639 GB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002832/0.367, allocations: 48.81 kB / 0.564 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.075e-05/0.367, allocations: 4 kB / 0.564 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002039/0.3691, allocations: 1.448 MB / 0.5654 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.3691, allocations: 4.031 kB / 0.5654 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001104/0.3702, allocations: 0.5027 MB / 0.5659 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002247/0.3704, allocations: 55.73 kB / 0.5659 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.654e-05/0.3705, allocations: 8 kB / 0.5659 GB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000369/0.3709, allocations: 20.05 kB / 0.566 GB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.426e-05/0.3709, allocations: 19.97 kB / 0.566 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.452e-05/0.371, allocations: 19.86 kB / 0.566 GB, free: 11.09 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003717/0.3713, allocations: 291.1 kB / 0.5663 GB, free: 10.81 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3713, allocations: 0 / 0.5663 GB, free: 10.81 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007007/0.372, allocations: 119.9 kB / 0.5664 GB, free: 10.7 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,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 (24): * Single equations (assignments): 22 * 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.003628/0.3757, allocations: 1.374 MB / 0.5677 GB, free: 9.449 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001396/0.3771, allocations: 395 kB / 0.5681 GB, free: 9.051 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.3771, allocations: 0 / 0.5681 GB, free: 9.051 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006984/0.3778, allocations: 238.5 kB / 0.5683 GB, free: 8.805 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001017/0.3788, allocations: 134.1 kB / 0.5685 GB, free: 8.688 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009264/0.388, allocations: 4.107 MB / 0.5725 GB, free: 4.367 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006944/0.3887, allocations: 0.8543 MB / 0.5733 GB, free: 3.484 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004246/0.3892, allocations: 71.34 kB / 0.5734 GB, free: 3.414 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003627/0.3895, allocations: 159.4 kB / 0.5735 GB, free: 3.258 MB / 414.1 MB Notification: Performance of SimCode: time 1.483e-06/0.3895, allocations: 0 / 0.5735 GB, free: 3.258 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05265/0.4422, allocations: 11.8 MB / 0.5851 GB, free: 7.547 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.74/14.19, allocations: 3.094 kB / 0.5851 GB, free: 7.547 MB / 430.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.092061524999735] Failed to read output from testmodel.py, exit status != 0: 14.369981458999973 14.386688371 14.038670754 Calling exit ...