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.001606/0.001606, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001955/0.001955, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.491/1.491, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.1917/0.1917, allocations: 38.5 MB / 348.7 MB, free: 2.578 MB / 270.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.001966/0.001966, allocations: 63.91 kB / 487.1 MB, free: 22.08 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1212, allocations: 62.42 MB / 0.5367 GB, free: 7.551 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.007597/0.1288, allocations: 5.323 MB / 0.5419 GB, free: 2.203 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002964/0.1318, allocations: 1.62 MB / 0.5434 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003169/0.1321, allocations: 23.81 kB / 0.5435 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004323/0.1325, allocations: 123 kB / 0.5436 GB, free: 444 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008285/0.1334, allocations: 326.1 kB / 0.5439 GB, free: 116 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004564/0.1338, allocations: 155.7 kB / 0.544 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009293/0.1348, allocations: 0.6965 MB / 0.5447 GB, free: 15.26 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005205/0.1353, allocations: 371.8 kB / 0.5451 GB, free: 14.89 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004487/0.1357, allocations: 302.8 kB / 0.5454 GB, free: 14.59 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004406/0.1362, allocations: 306.8 kB / 0.5457 GB, free: 14.29 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.411e-05/0.1362, allocations: 48 kB / 0.5457 GB, free: 14.25 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.547e-05/0.1363, allocations: 44 kB / 0.5457 GB, free: 14.2 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001673/0.1365, allocations: 155.5 kB / 0.5459 GB, free: 14.05 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002744/0.1368, allocations: 266.8 kB / 0.5461 GB, free: 13.79 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007752/0.1376, allocations: 0.5992 MB / 0.5467 GB, free: 13.19 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1376, allocations: 4 kB / 0.5467 GB, free: 13.18 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1376, allocations: 0 / 0.5467 GB, free: 13.18 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.1376, allocations: 0 / 0.5467 GB, free: 13.18 MB / 414.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.001494/0.1391, allocations: 0.7888 MB / 0.5475 GB, free: 12.34 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.1391, allocations: 12.03 kB / 0.5475 GB, free: 12.33 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001015/0.1392, allocations: 82.7 kB / 0.5476 GB, free: 12.24 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001049/0.1393, allocations: 60.56 kB / 0.5477 GB, free: 12.18 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007683/0.1401, allocations: 467.9 kB / 0.5481 GB, free: 11.69 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001062/0.1402, allocations: 62.7 kB / 0.5482 GB, free: 11.62 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.635e-05/0.1403, allocations: 40 kB / 0.5482 GB, free: 11.59 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008781/0.1411, allocations: 0.5009 MB / 0.5487 GB, free: 11.05 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.332e-05/0.1412, allocations: 4 kB / 0.5487 GB, free: 11.04 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.285e-05/0.1412, allocations: 16 kB / 0.5487 GB, free: 11.03 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.1412, allocations: 8 kB / 0.5487 GB, free: 11.02 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007049/0.1419, allocations: 347.7 kB / 0.549 GB, free: 10.68 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002567/0.1445, allocations: 1.965 MB / 0.551 GB, free: 8.598 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004682/0.145, allocations: 215.6 kB / 0.5512 GB, free: 8.359 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000205/0.1452, allocations: 98.58 kB / 0.5513 GB, free: 8.254 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.478e-05/0.1452, allocations: 8.312 kB / 0.5513 GB, free: 8.246 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.8e-05/0.1452, allocations: 34.56 kB / 0.5513 GB, free: 8.203 MB / 414.1 MB Notification: Performance of pre-optimization done (n=20): time 1.734e-06/0.1452, allocations: 0 / 0.5513 GB, free: 8.203 MB / 414.1 MB Notification: Performance of matching and sorting (n=22): time 0.001808/0.147, allocations: 0.857 MB / 0.5521 GB, free: 7.297 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.221e-05/0.1471, allocations: 110.8 kB / 0.5522 GB, free: 7.164 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004247/0.1476, allocations: 341.5 kB / 0.5526 GB, free: 6.82 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.677e-05/0.1476, allocations: 29.7 kB / 0.5526 GB, free: 6.785 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002336/0.1478, allocations: 276.2 kB / 0.5529 GB, free: 6.512 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.043e-05/0.1479, allocations: 71.39 kB / 0.5529 GB, free: 6.441 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001299/0.148, allocations: 77.7 kB / 0.553 GB, free: 6.359 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.1482, allocations: 342.8 kB / 0.5533 GB, free: 6.016 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002144/0.1484, allocations: 83.72 kB / 0.5534 GB, free: 5.934 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003354/0.1488, allocations: 217.1 kB / 0.5536 GB, free: 5.66 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001327/0.1501, allocations: 0.5524 MB / 0.5542 GB, free: 5.027 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1501, allocations: 4 kB / 0.5542 GB, free: 5.023 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009429/0.151, allocations: 413.2 kB / 0.5546 GB, free: 4.613 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/0.1511, allocations: 8 kB / 0.5546 GB, free: 4.605 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.1511, allocations: 4 kB / 0.5546 GB, free: 4.602 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003413/0.1514, allocations: 80.72 kB / 0.5546 GB, free: 4.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002517/0.1517, allocations: 67.91 kB / 0.5547 GB, free: 4.453 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002389/0.1541, allocations: 1.944 MB / 0.5566 GB, free: 2.375 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002686/0.1543, allocations: 15.98 kB / 0.5566 GB, free: 2.359 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.739e-05/0.1543, allocations: 16 kB / 0.5566 GB, free: 2.344 MB / 414.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.0003013/0.1546, allocations: 201.6 kB / 0.5568 GB, free: 2.137 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.843e-05/0.1547, allocations: 43.77 kB / 0.5569 GB, free: 2.094 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.508e-05/0.1548, allocations: 35.31 kB / 0.5569 GB, free: 2.062 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.1548, allocations: 4 kB / 0.5569 GB, free: 2.059 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.1548, allocations: 0 / 0.5569 GB, free: 2.059 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.1548, allocations: 0 / 0.5569 GB, free: 2.059 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001447/0.1563, allocations: 0.7805 MB / 0.5577 GB, free: 1.203 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.1563, allocations: 0 / 0.5577 GB, free: 1.203 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000345/0.1566, allocations: 43.97 kB / 0.5577 GB, free: 1.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001441/0.1568, allocations: 20.84 kB / 0.5577 GB, free: 1.137 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.32e-05/0.1568, allocations: 8 kB / 0.5577 GB, free: 1.129 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001221/0.158, allocations: 1.39 MB / 0.5591 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.158, allocations: 0 / 0.5591 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008669/0.1589, allocations: 0.5049 MB / 0.5596 GB, free: 15.06 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001543/0.159, allocations: 120.9 kB / 0.5597 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.907e-05/0.1591, allocations: 8 kB / 0.5597 GB, free: 14.92 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002117/0.1593, allocations: 19.98 kB / 0.5597 GB, free: 14.9 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.176e-05/0.1594, allocations: 15.92 kB / 0.5597 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.721e-05/0.1594, allocations: 8 kB / 0.5598 GB, free: 14.88 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002735/0.1596, allocations: 235.1 kB / 0.56 GB, free: 14.64 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1596, allocations: 0 / 0.56 GB, free: 14.64 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006079/0.1603, allocations: 91.94 kB / 0.5601 GB, free: 14.55 MB / 430.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.001229/0.1615, allocations: 1.046 MB / 0.5611 GB, free: 13.47 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0008866/0.1624, allocations: 369.1 kB / 0.5614 GB, free: 13.11 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1624, allocations: 0 / 0.5614 GB, free: 13.11 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003866/0.1628, allocations: 206.7 kB / 0.5616 GB, free: 12.89 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007342/0.1635, allocations: 109.4 kB / 0.5617 GB, free: 12.79 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005975/0.1695, allocations: 3.687 MB / 0.5653 GB, free: 8.879 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006211/0.1701, allocations: 0.8465 MB / 0.5662 GB, free: 8.004 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002178/0.1703, allocations: 47.25 kB / 0.5662 GB, free: 7.957 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002201/0.1705, allocations: 143.4 kB / 0.5664 GB, free: 7.816 MB / 430.1 MB Notification: Performance of SimCode: time 8.31e-07/0.1705, allocations: 4 kB / 0.5664 GB, free: 7.812 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04341/0.2139, allocations: 8.566 MB / 0.5747 GB, free: 15.41 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.6/12.82, allocations: 6.656 kB / 0.5747 GB, free: 15.41 MB / 446.1 MB " [Timeout remaining time 647] (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: 15.821636364009464] Failed to read output from testmodel.py, exit status != 0: 12.911692102003144 12.926606739 12.785966874 Calling exit ...