Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.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.001329/0.001329, allocations: 122.2 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.001489/0.001489, allocations: 215.1 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.514/1.514, allocations: 230.6 MB / 254.8 MB, free: 15.27 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.1928/0.1928, allocations: 38.51 MB / 349.4 MB, free: 2.629 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.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines",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.002021/0.002021, allocations: 60.8 kB / 487.8 MB, free: 32.35 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1237, allocations: 62.42 MB / 0.5374 GB, free: 9.547 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.01133/0.135, allocations: 5.444 MB / 0.5427 GB, free: 4.078 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01053/0.1456, allocations: 4.214 MB / 0.5468 GB, free: 15.85 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008096/0.1464, allocations: 27.75 kB / 0.5468 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01645/0.1628, allocations: 4.881 MB / 0.5516 GB, free: 10.93 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002218/0.1651, allocations: 346.4 kB / 0.5519 GB, free: 10.59 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001236/0.1663, allocations: 251.5 kB / 0.5522 GB, free: 10.35 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00402/0.1703, allocations: 1.567 MB / 0.5537 GB, free: 8.777 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001012/0.1713, allocations: 308.3 kB / 0.554 GB, free: 8.469 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009422/0.1723, allocations: 390.5 kB / 0.5544 GB, free: 8.086 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009802/0.1732, allocations: 490.2 kB / 0.5548 GB, free: 7.605 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001212/0.1734, allocations: 52 kB / 0.5549 GB, free: 7.555 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004174/0.1738, allocations: 123.8 kB / 0.555 GB, free: 7.434 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004142/0.1742, allocations: 279.2 kB / 0.5553 GB, free: 7.16 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004264/0.1746, allocations: 326.3 kB / 0.5556 GB, free: 6.84 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001064/0.1757, allocations: 0.7509 MB / 0.5563 GB, free: 6.086 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.1757, allocations: 0 / 0.5563 GB, free: 6.086 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1757, allocations: 0 / 0.5563 GB, free: 6.086 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.865e-05/0.1757, allocations: 0 / 0.5563 GB, free: 6.086 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: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001897/0.1776, allocations: 0.9283 MB / 0.5572 GB, free: 5.105 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.1776, allocations: 8.031 kB / 0.5572 GB, free: 5.098 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.337e-05/0.1777, allocations: 13.19 kB / 0.5572 GB, free: 5.086 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000115/0.1778, allocations: 90.7 kB / 0.5573 GB, free: 4.988 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004574/0.1782, allocations: 92.48 kB / 0.5574 GB, free: 4.898 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00108/0.1793, allocations: 0.5644 MB / 0.558 GB, free: 4.293 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.915e-05/0.1794, allocations: 40.98 kB / 0.558 GB, free: 4.254 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.418e-05/0.1795, allocations: 44 kB / 0.558 GB, free: 4.211 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/0.1805, allocations: 0.6531 MB / 0.5587 GB, free: 3.52 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.227e-05/0.1805, allocations: 3.938 kB / 0.5587 GB, free: 3.516 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.943e-05/0.1806, allocations: 16 kB / 0.5587 GB, free: 3.5 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001511/0.1807, allocations: 48.97 kB / 0.5587 GB, free: 3.449 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000824/0.1815, allocations: 491.6 kB / 0.5592 GB, free: 2.973 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003574/0.1851, allocations: 2.528 MB / 0.5617 GB, free: 312 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005258/0.1856, allocations: 291.6 kB / 0.562 GB, free: 15.99 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003177/0.186, allocations: 166.5 kB / 0.5621 GB, free: 15.82 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.33e-05/0.186, allocations: 8.5 kB / 0.5621 GB, free: 15.81 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.554e-05/0.186, allocations: 38.5 kB / 0.5622 GB, free: 15.77 MB / 430.1 MB Notification: Performance of pre-optimization done (n=32): time 1.914e-06/0.186, allocations: 0 / 0.5622 GB, free: 15.77 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.002728/0.1888, allocations: 1.654 MB / 0.5638 GB, free: 13.98 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.465e-05/0.1888, allocations: 106.8 kB / 0.5639 GB, free: 13.85 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004758/0.1893, allocations: 429.8 kB / 0.5643 GB, free: 13.42 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.297e-05/0.1893, allocations: 37.8 kB / 0.5643 GB, free: 13.38 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002422/0.1896, allocations: 324.1 kB / 0.5646 GB, free: 13.06 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001202/0.1897, allocations: 126.9 kB / 0.5647 GB, free: 12.93 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001434/0.1898, allocations: 86.25 kB / 0.5648 GB, free: 12.84 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.19, allocations: 362.7 kB / 0.5652 GB, free: 12.48 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002657/0.1903, allocations: 161 kB / 0.5653 GB, free: 12.32 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003944/0.1907, allocations: 304.7 kB / 0.5656 GB, free: 11.97 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007592/0.1914, allocations: 495.4 kB / 0.5661 GB, free: 11.43 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.1914, allocations: 4 kB / 0.5661 GB, free: 11.42 MB / 430.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001432/0.1929, allocations: 0.7844 MB / 0.5669 GB, free: 10.61 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.1929, allocations: 8 kB / 0.5669 GB, free: 10.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.1929, allocations: 4 kB / 0.5669 GB, free: 10.59 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006847/0.1936, allocations: 209.7 kB / 0.5671 GB, free: 10.38 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003285/0.1939, allocations: 79.77 kB / 0.5672 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005563/0.1995, allocations: 4.228 MB / 0.5713 GB, free: 5.797 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003811/0.1999, allocations: 20 kB / 0.5713 GB, free: 5.777 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.94e-05/0.1999, allocations: 15.98 kB / 0.5713 GB, free: 5.762 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 1 system {(3,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0004223/0.2003, allocations: 234.5 kB / 0.5715 GB, free: 5.523 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001164/0.2004, allocations: 47.67 kB / 0.5716 GB, free: 5.477 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00122/0.2017, allocations: 0.638 MB / 0.5722 GB, free: 4.793 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.857e-06/0.2017, allocations: 4 kB / 0.5722 GB, free: 4.789 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.2017, allocations: 0 / 0.5722 GB, free: 4.789 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-06/0.2017, allocations: 3.984 kB / 0.5722 GB, free: 4.785 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002121/0.2038, allocations: 1.195 MB / 0.5734 GB, free: 3.484 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.2038, allocations: 3.938 kB / 0.5734 GB, free: 3.48 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005143/0.2043, allocations: 75.88 kB / 0.5735 GB, free: 3.406 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002007/0.2045, allocations: 53.73 kB / 0.5735 GB, free: 3.348 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.705e-05/0.2046, allocations: 16 kB / 0.5735 GB, free: 3.332 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003039/0.2076, allocations: 2.835 MB / 0.5763 GB, free: 220 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/0.2076, allocations: 3.984 kB / 0.5763 GB, free: 216 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001442/0.209, allocations: 0.9611 MB / 0.5772 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002151/0.2093, allocations: 148.8 kB / 0.5774 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.245e-05/0.2093, allocations: 8 kB / 0.5774 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002614/0.2096, allocations: 15.98 kB / 0.5774 GB, free: 14.99 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.879e-05/0.2096, allocations: 27.97 kB / 0.5774 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.305e-05/0.2097, allocations: 12 kB / 0.5774 GB, free: 14.95 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005334/0.2103, allocations: 291.1 kB / 0.5777 GB, free: 14.66 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2103, allocations: 0 / 0.5777 GB, free: 14.66 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00068/0.211, allocations: 128 kB / 0.5778 GB, free: 14.54 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asynchron.i[3],asynchron.phi_el,asynchron.psi_s[1],asynchron.psi_s[2],asynchron.psi_rd[1],asynchron.psi_rq[1],rotor.w) * 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 (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (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.001892/0.2128, allocations: 1.52 MB / 0.5793 GB, free: 12.95 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001565/0.2144, allocations: 0.7165 MB / 0.58 GB, free: 12.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.2144, allocations: 0 / 0.58 GB, free: 12.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006235/0.215, allocations: 413 kB / 0.5804 GB, free: 11.77 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008419/0.2159, allocations: 128.8 kB / 0.5805 GB, free: 11.65 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008598/0.2245, allocations: 5.547 MB / 0.586 GB, free: 5.844 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006663/0.2251, allocations: 0.9522 MB / 0.5869 GB, free: 4.863 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003134/0.2255, allocations: 92.38 kB / 0.587 GB, free: 4.77 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003022/0.2258, allocations: 203.4 kB / 0.5872 GB, free: 4.57 MB / 446.1 MB Notification: Performance of SimCode: time 1.012e-06/0.2258, allocations: 0 / 0.5872 GB, free: 4.57 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04564/0.2714, allocations: 12.29 MB / 0.5992 GB, free: 8.449 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.34/13.61, allocations: 8.562 kB / 0.5992 GB, free: 8.441 MB / 462.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.81145356001798] Failed to read output from testmodel.py, exit status != 0: 13.770132560981438 14.00328478 13.824134387 Calling exit ...