Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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.00132/0.00132, 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.001517/0.001517, allocations: 203.3 kB / 20.74 MB, free: 2.316 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.542/1.542, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1898/0.1898, allocations: 38.52 MB / 348.7 MB, free: 2.676 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-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_ser,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_latest_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.001918/0.001918, allocations: 63.89 kB / 487.1 MB, free: 22.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1189, allocations: 62.43 MB / 0.5367 GB, free: 7.594 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.007868/0.1268, allocations: 5.238 MB / 0.5418 GB, free: 2.332 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00365/0.1304, allocations: 2.153 MB / 0.5439 GB, free: 176 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003406/0.1308, allocations: 19.88 kB / 0.5439 GB, free: 156 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005332/0.1313, allocations: 158.9 kB / 0.5441 GB, free: 15.99 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009924/0.1323, allocations: 405.8 kB / 0.5445 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005257/0.1328, allocations: 211.5 kB / 0.5447 GB, free: 15.39 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009554/0.1338, allocations: 0.7157 MB / 0.5454 GB, free: 14.68 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00052/0.1343, allocations: 371.2 kB / 0.5457 GB, free: 14.31 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005432/0.1349, allocations: 318.8 kB / 0.546 GB, free: 14 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004509/0.1353, allocations: 306.7 kB / 0.5463 GB, free: 13.7 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.451e-05/0.1354, allocations: 48 kB / 0.5464 GB, free: 13.65 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002775/0.1357, allocations: 136 kB / 0.5465 GB, free: 13.52 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001842/0.1359, allocations: 159.4 kB / 0.5466 GB, free: 13.36 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002957/0.1361, allocations: 278.7 kB / 0.5469 GB, free: 13.09 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000936/0.1371, allocations: 0.6926 MB / 0.5476 GB, free: 12.39 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1371, allocations: 0 / 0.5476 GB, free: 12.39 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1371, allocations: 3.938 kB / 0.5476 GB, free: 12.39 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.789e-06/0.1371, allocations: 0 / 0.5476 GB, free: 12.39 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001797/0.1389, allocations: 0.8772 MB / 0.5484 GB, free: 11.45 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.1389, allocations: 8.031 kB / 0.5484 GB, free: 11.45 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001107/0.139, allocations: 78.72 kB / 0.5485 GB, free: 11.36 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001218/0.1392, allocations: 64.56 kB / 0.5486 GB, free: 11.3 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008378/0.14, allocations: 494.3 kB / 0.5491 GB, free: 10.77 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.526e-05/0.14, allocations: 29 kB / 0.5491 GB, free: 10.75 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.949e-05/0.1401, allocations: 39.95 kB / 0.5491 GB, free: 10.71 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007573/0.1409, allocations: 461.1 kB / 0.5496 GB, free: 10.21 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.925e-05/0.1409, allocations: 4 kB / 0.5496 GB, free: 10.21 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.46e-05/0.1409, allocations: 20 kB / 0.5496 GB, free: 10.19 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.1409, allocations: 8 kB / 0.5496 GB, free: 10.18 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005294/0.1415, allocations: 278.3 kB / 0.5499 GB, free: 9.91 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002557/0.144, allocations: 1.863 MB / 0.5517 GB, free: 7.938 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005612/0.1446, allocations: 242.2 kB / 0.5519 GB, free: 7.676 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001518/0.1447, allocations: 87.05 kB / 0.552 GB, free: 7.582 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.298e-05/0.1448, allocations: 3.938 kB / 0.552 GB, free: 7.578 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003115/0.1451, allocations: 169.8 kB / 0.5522 GB, free: 7.391 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 1.673e-06/0.1451, allocations: 0 / 0.5522 GB, free: 7.391 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.002005/0.1471, allocations: 0.9333 MB / 0.5531 GB, free: 6.402 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.609e-05/0.1472, allocations: 132.5 kB / 0.5532 GB, free: 6.242 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005275/0.1477, allocations: 417.9 kB / 0.5536 GB, free: 5.832 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.44e-05/0.1477, allocations: 33.7 kB / 0.5536 GB, free: 5.793 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002158/0.148, allocations: 268.1 kB / 0.5539 GB, free: 5.523 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.587e-05/0.148, allocations: 99.42 kB / 0.554 GB, free: 5.426 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/0.1482, allocations: 73.64 kB / 0.554 GB, free: 5.348 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.1483, allocations: 354.7 kB / 0.5544 GB, free: 4.992 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001711/0.1485, allocations: 83.95 kB / 0.5545 GB, free: 4.91 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002859/0.1488, allocations: 216.2 kB / 0.5547 GB, free: 4.641 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004622/0.1493, allocations: 315.1 kB / 0.555 GB, free: 4.277 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1493, allocations: 3.938 kB / 0.555 GB, free: 4.273 MB / 414.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0009364/0.1502, allocations: 433.5 kB / 0.5554 GB, free: 3.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.1502, allocations: 4.531 kB / 0.5554 GB, free: 3.836 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.1502, allocations: 8 kB / 0.5554 GB, free: 3.828 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000465/0.1507, allocations: 96.77 kB / 0.5555 GB, free: 3.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002413/0.1509, allocations: 59.91 kB / 0.5555 GB, free: 3.672 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002728/0.1537, allocations: 2.018 MB / 0.5575 GB, free: 1.512 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002978/0.154, allocations: 23.97 kB / 0.5575 GB, free: 1.488 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.572e-05/0.154, allocations: 27.88 kB / 0.5576 GB, free: 1.461 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.0002968/0.1543, allocations: 201.7 kB / 0.5578 GB, free: 1.254 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.522e-05/0.1544, allocations: 43.72 kB / 0.5578 GB, free: 1.211 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006818/0.1551, allocations: 298.1 kB / 0.5581 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.1551, allocations: 4 kB / 0.5581 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1551, allocations: 4 kB / 0.5581 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.1551, allocations: 3.984 kB / 0.5581 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001224/0.1563, allocations: 0.7689 MB / 0.5589 GB, free: 72 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.1563, allocations: 0 / 0.5589 GB, free: 72 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002647/0.1566, allocations: 51.91 kB / 0.5589 GB, free: 20 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002475/0.1568, allocations: 44.81 kB / 0.5589 GB, free: 15.97 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.534e-05/0.1568, allocations: 8 kB / 0.559 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001645/0.1585, allocations: 1.547 MB / 0.5605 GB, free: 14.28 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.1585, allocations: 4.062 kB / 0.5605 GB, free: 14.27 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008919/0.1594, allocations: 0.4948 MB / 0.5609 GB, free: 13.75 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001848/0.1596, allocations: 136.9 kB / 0.5611 GB, free: 13.6 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.07e-05/0.1596, allocations: 4 kB / 0.5611 GB, free: 13.6 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002456/0.1599, allocations: 23.97 kB / 0.5611 GB, free: 13.57 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.803e-05/0.1599, allocations: 27.91 kB / 0.5611 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.12e-05/0.16, allocations: 11.88 kB / 0.5611 GB, free: 13.54 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004041/0.1604, allocations: 291.1 kB / 0.5614 GB, free: 13.25 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1604, allocations: 0 / 0.5614 GB, free: 13.25 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006322/0.161, allocations: 123.9 kB / 0.5615 GB, free: 13.13 MB / 430.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.003375/0.1644, allocations: 1.364 MB / 0.5629 GB, free: 11.89 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001435/0.1658, allocations: 399 kB / 0.5633 GB, free: 11.49 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.239e-06/0.1658, allocations: 0 / 0.5633 GB, free: 11.49 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006353/0.1664, allocations: 239.4 kB / 0.5635 GB, free: 11.24 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001179/0.1676, allocations: 132.4 kB / 0.5636 GB, free: 11.12 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009386/0.177, allocations: 4.104 MB / 0.5676 GB, free: 6.809 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000823/0.1778, allocations: 0.8504 MB / 0.5684 GB, free: 5.93 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004705/0.1783, allocations: 67.36 kB / 0.5685 GB, free: 5.863 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004179/0.1787, allocations: 167.4 kB / 0.5687 GB, free: 5.699 MB / 430.1 MB Notification: Performance of SimCode: time 2.044e-06/0.1787, allocations: 0 / 0.5687 GB, free: 5.699 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05322/0.2319, allocations: 11.54 MB / 0.5799 GB, free: 10.24 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.22/13.45, allocations: 4.453 kB / 0.5799 GB, free: 10.24 MB / 446.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_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_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.845101955812424] Failed to read output from testmodel.py, exit status != 0: 13.6128657059744 13.866276554 13.725947547 Calling exit ...