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.001281/0.001281, 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.0014/0.0014, 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.572/1.572, allocations: 230.6 MB / 254.8 MB, free: 15.1 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.2215/0.2215, allocations: 38.5 MB / 349.4 MB, free: 2.605 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_ser,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_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.001948/0.001948, allocations: 67.89 kB / 487.8 MB, free: 22.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.1256, allocations: 62.42 MB / 0.5373 GB, free: 7.57 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.009581/0.1352, allocations: 5.247 MB / 0.5425 GB, free: 2.297 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004216/0.1394, allocations: 2.153 MB / 0.5446 GB, free: 140 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005584/0.14, allocations: 15.88 kB / 0.5446 GB, free: 124 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009218/0.1409, allocations: 158.9 kB / 0.5447 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001589/0.1425, allocations: 405.8 kB / 0.5451 GB, free: 15.56 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007707/0.1433, allocations: 215.5 kB / 0.5453 GB, free: 15.35 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001505/0.1448, allocations: 0.7238 MB / 0.546 GB, free: 14.63 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006833/0.1454, allocations: 359.3 kB / 0.5464 GB, free: 14.27 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008379/0.1463, allocations: 314.8 kB / 0.5467 GB, free: 13.96 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006914/0.147, allocations: 306.7 kB / 0.547 GB, free: 13.66 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001393/0.1471, allocations: 48 kB / 0.547 GB, free: 13.62 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005229/0.1476, allocations: 147.9 kB / 0.5472 GB, free: 13.47 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002842/0.1479, allocations: 151.5 kB / 0.5473 GB, free: 13.32 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005936/0.1485, allocations: 266.7 kB / 0.5476 GB, free: 13.06 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001567/0.1501, allocations: 0.7043 MB / 0.5483 GB, free: 12.36 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1501, allocations: 3.938 kB / 0.5483 GB, free: 12.35 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1501, allocations: 0 / 0.5483 GB, free: 12.35 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.952e-05/0.1501, allocations: 0 / 0.5483 GB, free: 12.35 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.002236/0.1523, allocations: 0.8733 MB / 0.5491 GB, free: 11.42 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.1524, allocations: 12.03 kB / 0.5491 GB, free: 11.41 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.66e-05/0.1524, allocations: 9.188 kB / 0.5491 GB, free: 11.4 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000103/0.1525, allocations: 74.72 kB / 0.5492 GB, free: 11.32 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001574/0.1527, allocations: 60.56 kB / 0.5493 GB, free: 11.26 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001059/0.1537, allocations: 498.1 kB / 0.5497 GB, free: 10.73 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.415e-05/0.1538, allocations: 29 kB / 0.5498 GB, free: 10.71 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.775e-05/0.1539, allocations: 43.89 kB / 0.5498 GB, free: 10.66 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008458/0.1547, allocations: 457.1 kB / 0.5502 GB, free: 10.18 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.665e-05/0.1547, allocations: 4 kB / 0.5502 GB, free: 10.17 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.974e-05/0.1548, allocations: 19.94 kB / 0.5503 GB, free: 10.15 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.068e-05/0.1549, allocations: 8 kB / 0.5503 GB, free: 10.14 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006168/0.1555, allocations: 282.3 kB / 0.5505 GB, free: 9.867 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002927/0.1584, allocations: 1.859 MB / 0.5524 GB, free: 7.898 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005697/0.159, allocations: 242.2 kB / 0.5526 GB, free: 7.637 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001785/0.1591, allocations: 86.98 kB / 0.5527 GB, free: 7.543 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.493e-05/0.1592, allocations: 4.141 kB / 0.5527 GB, free: 7.539 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003183/0.1595, allocations: 173.8 kB / 0.5528 GB, free: 7.348 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 2.685e-06/0.1595, allocations: 0 / 0.5528 GB, free: 7.348 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.001979/0.1615, allocations: 0.9369 MB / 0.5537 GB, free: 6.359 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.1616, allocations: 132.5 kB / 0.5539 GB, free: 6.199 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005813/0.1622, allocations: 413.9 kB / 0.5543 GB, free: 5.789 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.661e-05/0.1622, allocations: 33.7 kB / 0.5543 GB, free: 5.75 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002355/0.1624, allocations: 276.1 kB / 0.5546 GB, free: 5.477 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001096/0.1625, allocations: 99.2 kB / 0.5547 GB, free: 5.379 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001385/0.1627, allocations: 69.66 kB / 0.5547 GB, free: 5.305 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001919/0.1629, allocations: 354.8 kB / 0.5551 GB, free: 4.949 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002086/0.1631, allocations: 83.95 kB / 0.5551 GB, free: 4.867 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003211/0.1634, allocations: 220.2 kB / 0.5554 GB, free: 4.594 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005669/0.164, allocations: 315.1 kB / 0.5557 GB, free: 4.23 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.164, allocations: 0 / 0.5557 GB, free: 4.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.000971/0.1649, allocations: 429.6 kB / 0.5561 GB, free: 3.801 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.165, allocations: 4 kB / 0.5561 GB, free: 3.797 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.165, allocations: 4 kB / 0.5561 GB, free: 3.793 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004557/0.1654, allocations: 101.1 kB / 0.5562 GB, free: 3.691 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002538/0.1657, allocations: 71.84 kB / 0.5562 GB, free: 3.621 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002985/0.1687, allocations: 2.022 MB / 0.5582 GB, free: 1.457 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002864/0.169, allocations: 23.94 kB / 0.5582 GB, free: 1.434 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.736e-05/0.169, allocations: 12 kB / 0.5582 GB, free: 1.422 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.000264/0.1693, allocations: 201.6 kB / 0.5584 GB, free: 1.215 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.549e-05/0.1693, allocations: 43.72 kB / 0.5585 GB, free: 1.172 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006798/0.17, allocations: 306.2 kB / 0.5588 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.111e-05/0.17, allocations: 4 kB / 0.5588 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.17, allocations: 4 kB / 0.5588 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.17, allocations: 0 / 0.5588 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001288/0.1713, allocations: 0.7727 MB / 0.5595 GB, free: 24 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.1713, allocations: 4 kB / 0.5595 GB, free: 20 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000272/0.1716, allocations: 40.05 kB / 0.5596 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002454/0.1719, allocations: 48.73 kB / 0.5596 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.655e-05/0.1719, allocations: 8 kB / 0.5596 GB, free: 15.92 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001579/0.1735, allocations: 1.551 MB / 0.5611 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.1735, allocations: 0 / 0.5611 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008652/0.1743, allocations: 0.5027 MB / 0.5616 GB, free: 13.7 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001842/0.1745, allocations: 136.9 kB / 0.5618 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.92e-05/0.1746, allocations: 11.97 kB / 0.5618 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002647/0.1748, allocations: 12 kB / 0.5618 GB, free: 13.52 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.256e-05/0.1749, allocations: 27.84 kB / 0.5618 GB, free: 13.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.313e-05/0.1749, allocations: 15.98 kB / 0.5618 GB, free: 13.48 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003799/0.1753, allocations: 287.1 kB / 0.5621 GB, free: 13.2 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1753, allocations: 0 / 0.5621 GB, free: 13.2 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006175/0.1759, allocations: 123.9 kB / 0.5622 GB, free: 13.08 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.00278/0.1787, allocations: 1.367 MB / 0.5636 GB, free: 11.84 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0009926/0.1797, allocations: 399 kB / 0.5639 GB, free: 11.44 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.88e-06/0.1797, allocations: 0 / 0.5639 GB, free: 11.44 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004457/0.1802, allocations: 239.6 kB / 0.5642 GB, free: 11.2 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007427/0.1809, allocations: 123.7 kB / 0.5643 GB, free: 11.07 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006838/0.1877, allocations: 4.107 MB / 0.5683 GB, free: 6.762 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006217/0.1884, allocations: 0.8621 MB / 0.5691 GB, free: 5.871 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003002/0.1887, allocations: 63.36 kB / 0.5692 GB, free: 5.809 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002709/0.1889, allocations: 159.4 kB / 0.5694 GB, free: 5.652 MB / 430.1 MB Notification: Performance of SimCode: time 8.81e-07/0.1889, allocations: 0 / 0.5694 GB, free: 5.652 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03971/0.2286, allocations: 11.57 MB / 0.5807 GB, free: 10.16 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.37/13.6, allocations: 12.03 kB / 0.5807 GB, free: 10.15 MB / 446.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser_fmu --startTime=0 --stopTime=60 --stepSize=0.024 --timeout=50 --tolerance=1e-06 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.014190323010553] Failed to read output from testmodel.py, exit status != 0: 13.821172293974087 14.061600996 13.908017952 Calling exit ...