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.00166/0.00166, allocations: 121 kB / 18.5 MB, free: 4.562 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.002089/0.002089, allocations: 213.5 kB / 21.45 MB, free: 1.617 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.502/1.502, allocations: 230.6 MB / 254.8 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1844/0.1844, allocations: 38.5 MB / 349.4 MB, free: 2.598 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="cs",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.002007/0.002007, allocations: 71.88 kB / 487.8 MB, free: 22.08 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1202, allocations: 62.42 MB / 0.5374 GB, free: 7.555 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.008414/0.1286, allocations: 5.243 MB / 0.5425 GB, free: 2.285 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004235/0.1328, allocations: 2.153 MB / 0.5446 GB, free: 128 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005255/0.1334, allocations: 27.81 kB / 0.5446 GB, free: 100 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007576/0.1341, allocations: 150.8 kB / 0.5447 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001412/0.1355, allocations: 405.7 kB / 0.5451 GB, free: 15.55 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006874/0.1362, allocations: 219.5 kB / 0.5453 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001232/0.1374, allocations: 0.7045 MB / 0.546 GB, free: 14.63 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006117/0.1381, allocations: 371.2 kB / 0.5464 GB, free: 14.26 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006601/0.1387, allocations: 314.8 kB / 0.5467 GB, free: 13.95 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005747/0.1393, allocations: 306.7 kB / 0.547 GB, free: 13.65 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.493e-05/0.1394, allocations: 48 kB / 0.547 GB, free: 13.61 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000338/0.1397, allocations: 143.9 kB / 0.5472 GB, free: 13.46 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001746/0.1399, allocations: 155.5 kB / 0.5473 GB, free: 13.31 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003187/0.1402, allocations: 270.7 kB / 0.5476 GB, free: 13.05 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001046/0.1413, allocations: 0.7004 MB / 0.5483 GB, free: 12.34 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1413, allocations: 0 / 0.5483 GB, free: 12.34 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.562e-06/0.1413, allocations: 4 kB / 0.5483 GB, free: 12.34 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.23e-05/0.1413, allocations: 0 / 0.5483 GB, free: 12.34 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.001865/0.1431, allocations: 0.8811 MB / 0.5491 GB, free: 11.4 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.1432, allocations: 12.03 kB / 0.5491 GB, free: 11.39 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.675e-05/0.1432, allocations: 9.188 kB / 0.5491 GB, free: 11.38 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.182e-05/0.1433, allocations: 74.72 kB / 0.5492 GB, free: 11.3 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001398/0.1434, allocations: 60.56 kB / 0.5493 GB, free: 11.24 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008903/0.1443, allocations: 490.2 kB / 0.5497 GB, free: 10.72 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.123e-05/0.1444, allocations: 29 kB / 0.5498 GB, free: 10.7 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.811e-05/0.1444, allocations: 39.95 kB / 0.5498 GB, free: 10.66 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007535/0.1452, allocations: 469 kB / 0.5502 GB, free: 10.16 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.906e-05/0.1452, allocations: 0 / 0.5502 GB, free: 10.16 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.658e-05/0.1453, allocations: 23.98 kB / 0.5503 GB, free: 10.13 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.259e-05/0.1453, allocations: 8 kB / 0.5503 GB, free: 10.12 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004904/0.1458, allocations: 278.3 kB / 0.5505 GB, free: 9.852 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002792/0.1486, allocations: 1.859 MB / 0.5524 GB, free: 7.883 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005963/0.1492, allocations: 242.6 kB / 0.5526 GB, free: 7.621 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001589/0.1493, allocations: 82.92 kB / 0.5527 GB, free: 7.531 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.018e-05/0.1494, allocations: 8 kB / 0.5527 GB, free: 7.523 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003288/0.1497, allocations: 169.8 kB / 0.5528 GB, free: 7.336 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 2.765e-06/0.1497, allocations: 0 / 0.5528 GB, free: 7.336 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.00202/0.1517, allocations: 0.9403 MB / 0.5538 GB, free: 6.344 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.364e-05/0.1518, allocations: 128.5 kB / 0.5539 GB, free: 6.188 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005427/0.1523, allocations: 421.9 kB / 0.5543 GB, free: 5.77 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.135e-05/0.1524, allocations: 29.7 kB / 0.5543 GB, free: 5.734 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002313/0.1526, allocations: 276.3 kB / 0.5546 GB, free: 5.461 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.668e-05/0.1527, allocations: 91.22 kB / 0.5547 GB, free: 5.371 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/0.1528, allocations: 73.7 kB / 0.5547 GB, free: 5.293 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.00018/0.153, allocations: 354.8 kB / 0.5551 GB, free: 4.938 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000168/0.1532, allocations: 83.95 kB / 0.5551 GB, free: 4.855 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002748/0.1534, allocations: 220.1 kB / 0.5554 GB, free: 4.582 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004472/0.1539, allocations: 307.8 kB / 0.5557 GB, free: 4.227 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.1539, allocations: 7.938 kB / 0.5557 GB, free: 4.219 MB / 414.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0009484/0.1548, allocations: 425.6 kB / 0.5561 GB, free: 3.793 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.333e-05/0.1549, allocations: 8 kB / 0.5561 GB, free: 3.785 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.1549, allocations: 4.531 kB / 0.5561 GB, free: 3.781 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004888/0.1554, allocations: 104.7 kB / 0.5562 GB, free: 3.676 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002518/0.1556, allocations: 67.84 kB / 0.5562 GB, free: 3.609 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002705/0.1583, allocations: 2.01 MB / 0.5582 GB, free: 1.457 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003312/0.1586, allocations: 27.86 kB / 0.5582 GB, free: 1.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.142e-05/0.1587, allocations: 19.94 kB / 0.5583 GB, free: 1.41 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.0002667/0.1589, allocations: 205.6 kB / 0.5584 GB, free: 1.199 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.53e-05/0.159, allocations: 43.72 kB / 0.5585 GB, free: 1.156 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006604/0.1597, allocations: 298.1 kB / 0.5588 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.1597, allocations: 4 kB / 0.5588 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.1597, allocations: 0 / 0.5588 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.1597, allocations: 3.984 kB / 0.5588 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001242/0.1609, allocations: 0.7728 MB / 0.5595 GB, free: 16 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.1609, allocations: 3.984 kB / 0.5595 GB, free: 12 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000272/0.1612, allocations: 47.91 kB / 0.5596 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002308/0.1614, allocations: 48.81 kB / 0.5596 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.432e-05/0.1615, allocations: 7.984 kB / 0.5596 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001624/0.1631, allocations: 1.547 MB / 0.5611 GB, free: 14.21 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1631, allocations: 0 / 0.5611 GB, free: 14.21 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000883/0.164, allocations: 0.5026 MB / 0.5616 GB, free: 13.69 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001713/0.1641, allocations: 132.8 kB / 0.5618 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.27e-05/0.1642, allocations: 12 kB / 0.5618 GB, free: 13.53 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002406/0.1644, allocations: 19.98 kB / 0.5618 GB, free: 13.51 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.271e-05/0.1645, allocations: 23.91 kB / 0.5618 GB, free: 13.48 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.018e-05/0.1645, allocations: 8 kB / 0.5618 GB, free: 13.48 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003758/0.1649, allocations: 295.1 kB / 0.5621 GB, free: 13.19 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1649, allocations: 0 / 0.5621 GB, free: 13.19 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005897/0.1655, allocations: 119.9 kB / 0.5622 GB, free: 13.07 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.002612/0.1681, allocations: 1.375 MB / 0.5636 GB, free: 11.83 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0009712/0.1691, allocations: 391.1 kB / 0.5639 GB, free: 11.43 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.1691, allocations: 0 / 0.5639 GB, free: 11.43 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004441/0.1695, allocations: 242.5 kB / 0.5642 GB, free: 11.18 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007668/0.1703, allocations: 131 kB / 0.5643 GB, free: 11.05 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006654/0.177, allocations: 4.092 MB / 0.5683 GB, free: 6.754 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005814/0.1775, allocations: 0.8582 MB / 0.5691 GB, free: 5.867 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002672/0.1778, allocations: 71.3 kB / 0.5692 GB, free: 5.797 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002451/0.178, allocations: 167.3 kB / 0.5694 GB, free: 5.633 MB / 430.1 MB Notification: Performance of SimCode: time 9.42e-07/0.178, allocations: 0 / 0.5694 GB, free: 5.633 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03934/0.2174, allocations: 11.57 MB / 0.5807 GB, free: 10.17 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.4/13.61, allocations: 14.88 kB / 0.5807 GB, free: 10.16 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser_fmu --startTime=0 --stopTime=60 --stepSize=0.024 --timeout=50 --tolerance=1e-06 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.93038537702523] Failed to read output from testmodel.py, exit status != 0: 13.845236758003011 14.083996057 13.938847608 Calling exit ...