Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.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.0008474/0.0008474, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001033/0.001033, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8764/0.8764, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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.2238/0.2238, allocations: 29.41 MB / 290.1 MB, free: 2.445 MB / 266.7 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.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.144e-06/2.144e-06, allocations: 0 / 430.2 MB, free: 13.61 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.484e-05/2.698e-05, allocations: 10.22 kB / 430.2 MB, free: 13.59 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.004672/0.004699, allocations: 4.436 MB / 434.7 MB, free: 9.129 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001836/0.006536, allocations: 1.406 MB / 436.1 MB, free: 7.719 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000251/0.006787, allocations: 19.81 kB / 436.1 MB, free: 7.699 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003815/0.007168, allocations: 115.2 kB / 436.2 MB, free: 7.586 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006224/0.007791, allocations: 282 kB / 436.5 MB, free: 7.309 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003248/0.008116, allocations: 115.8 kB / 436.6 MB, free: 7.195 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006599/0.008775, allocations: 0.5212 MB / 437.1 MB, free: 6.672 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001859/0.008961, allocations: 104.5 kB / 437.2 MB, free: 6.566 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003548/0.009316, allocations: 287.1 kB / 437.5 MB, free: 6.285 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002317/0.009548, allocations: 171.5 kB / 437.7 MB, free: 6.117 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.301e-05/0.009581, allocations: 28 kB / 437.7 MB, free: 6.09 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.811e-05/0.009619, allocations: 28 kB / 437.7 MB, free: 6.062 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 9.142e-05/0.00971, allocations: 119.6 kB / 437.8 MB, free: 5.945 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 9.769e-05/0.009808, allocations: 115.7 kB / 437.9 MB, free: 5.832 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003238/0.01013, allocations: 378.7 kB / 438.3 MB, free: 5.461 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.01014, allocations: 0 / 438.3 MB, free: 5.461 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.01014, allocations: 3.938 kB / 438.3 MB, free: 5.457 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.01014, allocations: 0 / 438.3 MB, free: 5.457 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0009343/0.01108, allocations: 0.5955 MB / 438.9 MB, free: 4.832 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.01112, allocations: 15.98 kB / 438.9 MB, free: 4.816 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.156e-05/0.01117, allocations: 58.73 kB / 439 MB, free: 4.75 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.826e-05/0.01123, allocations: 44.69 kB / 439 MB, free: 4.707 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004561/0.01168, allocations: 336.7 kB / 439.4 MB, free: 4.352 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/0.0117, allocations: 21.03 kB / 439.4 MB, free: 4.332 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.867e-05/0.01174, allocations: 32.08 kB / 439.4 MB, free: 4.301 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003388/0.01208, allocations: 335.6 kB / 439.7 MB, free: 3.938 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.01209, allocations: 3.984 kB / 439.7 MB, free: 3.934 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.003e-05/0.01211, allocations: 16 kB / 439.8 MB, free: 3.918 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.01212, allocations: 7.938 kB / 439.8 MB, free: 3.91 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002257/0.01234, allocations: 205.8 kB / 440 MB, free: 3.707 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001103/0.01345, allocations: 1.382 MB / 441.3 MB, free: 2.238 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002911/0.01374, allocations: 186.4 kB / 441.5 MB, free: 2.02 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.295e-05/0.01381, allocations: 79.47 kB / 441.6 MB, free: 1.93 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.784e-05/0.01383, allocations: 4 kB / 441.6 MB, free: 1.926 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.263e-05/0.01385, allocations: 34.56 kB / 441.6 MB, free: 1.883 MB / 410.7 MB Notification: Performance of pre-optimization done (n=17): time 1.483e-06/0.01385, allocations: 4 kB / 441.6 MB, free: 1.879 MB / 410.7 MB Notification: Performance of matching and sorting (n=18): time 0.001016/0.01487, allocations: 0.6208 MB / 442.3 MB, free: 1.223 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.399e-05/0.01492, allocations: 132.5 kB / 442.4 MB, free: 1.062 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002136/0.01514, allocations: 321.6 kB / 442.7 MB, free: 0.7383 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.574e-05/0.01515, allocations: 30.08 kB / 442.7 MB, free: 0.7031 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.01525, allocations: 224.1 kB / 443 MB, free: 492 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.697e-05/0.01529, allocations: 67.42 kB / 443 MB, free: 424 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.395e-05/0.01535, allocations: 53.66 kB / 443.1 MB, free: 364 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.439e-05/0.01544, allocations: 346.8 kB / 443.4 MB, free: 8 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1697/0.1851, allocations: 42.41 kB / 443.5 MB, free: 54.36 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001166/0.1853, allocations: 148.6 kB / 443.6 MB, free: 54.24 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001925/0.1855, allocations: 222.2 kB / 443.8 MB, free: 54.12 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1855, allocations: 0 / 443.8 MB, free: 54.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002674/0.1857, allocations: 260.8 kB / 444.1 MB, free: 54.08 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.1857, allocations: 9.281 kB / 444.1 MB, free: 54.08 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.1858, allocations: 3.219 kB / 444.1 MB, free: 54.08 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.1858, allocations: 6.5 kB / 444.1 MB, free: 54.08 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002572/0.186, allocations: 76 kB / 444.2 MB, free: 54.08 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000485/0.1865, allocations: 1.279 MB / 445.4 MB, free: 52.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001211/0.1866, allocations: 10.31 kB / 445.5 MB, free: 52.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.309e-05/0.1866, allocations: 13.06 kB / 445.5 MB, free: 52.8 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001447/0.1868, allocations: 161.7 kB / 445.6 MB, free: 52.68 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.767e-05/0.1868, allocations: 38.52 kB / 445.7 MB, free: 52.68 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001992/0.187, allocations: 185.7 kB / 445.8 MB, free: 52.64 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.187, allocations: 3.156 kB / 445.8 MB, free: 52.64 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.187, allocations: 1.5 kB / 445.8 MB, free: 52.64 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.1871, allocations: 7.406 kB / 445.9 MB, free: 52.64 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004665/0.1875, allocations: 0.4966 MB / 446.4 MB, free: 52.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.1875, allocations: 3.156 kB / 446.4 MB, free: 52.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001304/0.1877, allocations: 43.62 kB / 446.4 MB, free: 52.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.1877, allocations: 0 / 446.4 MB, free: 52.38 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.1877, allocations: 5.938 kB / 446.4 MB, free: 52.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.1877, allocations: 7.188 kB / 446.4 MB, free: 52.37 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1877, allocations: 0 / 446.4 MB, free: 52.37 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002314/0.1879, allocations: 497.9 kB / 446.9 MB, free: 52.03 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.821e-05/0.1879, allocations: 34.84 kB / 446.9 MB, free: 52.03 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.97e-05/0.1879, allocations: 7.188 kB / 446.9 MB, free: 52.03 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.1881, allocations: 10.41 kB / 446.9 MB, free: 52.02 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.139e-05/0.1881, allocations: 10.45 kB / 447 MB, free: 52.02 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.127e-06/0.1881, allocations: 7.969 kB / 447 MB, free: 52.02 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001071/0.1882, allocations: 225.4 kB / 447.2 MB, free: 51.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1882, allocations: 2.906 kB / 447.2 MB, free: 51.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002602/0.1885, allocations: 61.06 kB / 447.2 MB, free: 51.89 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * 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 (20): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003239/0.1888, allocations: 1.027 MB / 448.3 MB, free: 51 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002266/0.189, allocations: 153.4 kB / 448.4 MB, free: 50.95 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.189, allocations: 0 / 448.4 MB, free: 50.95 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 6.465e-05/0.1891, allocations: 70.56 kB / 448.5 MB, free: 50.93 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004751/0.1895, allocations: 92.09 kB / 448.6 MB, free: 50.91 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002044/0.1916, allocations: 3.168 MB / 451.8 MB, free: 48.73 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001061/0.1917, allocations: 202.3 kB / 452 MB, free: 48.63 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001116/0.1918, allocations: 51.38 kB / 452 MB, free: 48.62 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.97e-05/0.1919, allocations: 122.2 kB / 452.1 MB, free: 48.54 MB / 410.7 MB Notification: Performance of SimCode: time 1.503e-06/0.1919, allocations: 0 / 452.1 MB, free: 48.54 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02018/0.2121, allocations: 7.69 MB / 459.8 MB, free: 47.13 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.608/6.82, allocations: 9.406 kB / 459.8 MB, free: 47.13 MB / 410.7 MB " [Timeout remaining time 653] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.629888101480901] Failed to read output from testmodel.py, exit status != 0: 6.902747778221965 6.910909345 6.89855554 Calling exit ...