Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.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.0008547/0.0008547, 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.8861/0.8861, allocations: 177.1 MB / 204.2 MB, free: 5.727 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.2139/0.2139, allocations: 29.41 MB / 290.1 MB, free: 2.453 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.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 430.2 MB, free: 13.62 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.973e-05/2.144e-05, allocations: 2.281 kB / 430.2 MB, free: 13.62 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.003368/0.00339, allocations: 3.313 MB / 433.5 MB, free: 10.29 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001161/0.004551, allocations: 1.173 MB / 434.7 MB, free: 9.105 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.004659, allocations: 7.938 kB / 434.7 MB, free: 9.098 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004342/0.005093, allocations: 159.2 kB / 434.8 MB, free: 8.941 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002772/0.00537, allocations: 183 kB / 435 MB, free: 8.762 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001893/0.00556, allocations: 135.4 kB / 435.2 MB, free: 8.629 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002428/0.005802, allocations: 294.9 kB / 435.4 MB, free: 8.34 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002075/0.00601, allocations: 114.2 kB / 435.6 MB, free: 8.23 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002128/0.006223, allocations: 179.5 kB / 435.7 MB, free: 8.055 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001245/0.006347, allocations: 91.69 kB / 435.8 MB, free: 7.965 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.915e-05/0.006366, allocations: 16 kB / 435.8 MB, free: 7.949 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002001/0.006566, allocations: 195.3 kB / 436 MB, free: 7.758 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 5.866e-05/0.006625, allocations: 63.81 kB / 436.1 MB, free: 7.695 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 5.776e-05/0.006683, allocations: 67.72 kB / 436.2 MB, free: 7.629 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002699/0.006953, allocations: 291.1 kB / 436.4 MB, free: 7.344 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.006955, allocations: 3.938 kB / 436.4 MB, free: 7.34 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.006956, allocations: 0 / 436.4 MB, free: 7.34 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.557e-06/0.00696, allocations: 4 kB / 436.4 MB, free: 7.336 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0004582/0.007418, allocations: 437.3 kB / 436.9 MB, free: 6.879 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.007451, allocations: 11.98 kB / 436.9 MB, free: 6.867 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.528e-05/0.007497, allocations: 58.73 kB / 436.9 MB, free: 6.801 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003527/0.007849, allocations: 76.72 kB / 437 MB, free: 6.727 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002184/0.008068, allocations: 201.4 kB / 437.2 MB, free: 6.504 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.241e-05/0.00808, allocations: 12.7 kB / 437.2 MB, free: 6.492 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.027e-05/0.00811, allocations: 16.33 kB / 437.2 MB, free: 6.477 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003042/0.008415, allocations: 264.5 kB / 437.5 MB, free: 6.195 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.008428, allocations: 8.188 kB / 437.5 MB, free: 6.188 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.51e-05/0.008443, allocations: 11.88 kB / 437.5 MB, free: 6.176 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.565e-05/0.008469, allocations: 20.31 kB / 437.5 MB, free: 6.156 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002287/0.008698, allocations: 220.3 kB / 437.8 MB, free: 5.941 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001017/0.009715, allocations: 1.099 MB / 438.9 MB, free: 4.754 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001569/0.009872, allocations: 125.1 kB / 439 MB, free: 4.613 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.692e-05/0.009918, allocations: 49.86 kB / 439 MB, free: 4.559 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.348e-05/0.009932, allocations: 3.984 kB / 439 MB, free: 4.555 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.712e-05/0.009949, allocations: 34.56 kB / 439.1 MB, free: 4.512 MB / 410.7 MB Notification: Performance of pre-optimization done (n=12): time 1.302e-06/0.00995, allocations: 0 / 439.1 MB, free: 4.512 MB / 410.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002424/0.01019, allocations: 165.4 kB / 439.2 MB, free: 4.344 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000274/0.01047, allocations: 81.11 kB / 439.3 MB, free: 4.246 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001329/0.0106, allocations: 214.9 kB / 439.5 MB, free: 4.023 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.252e-05/0.01061, allocations: 29.7 kB / 439.5 MB, free: 3.988 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.789e-05/0.01068, allocations: 156.2 kB / 439.7 MB, free: 3.832 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.661e-05/0.01071, allocations: 51.69 kB / 439.7 MB, free: 3.781 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.307e-05/0.01075, allocations: 45.7 kB / 439.8 MB, free: 3.73 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.959e-05/0.01083, allocations: 326.8 kB / 440.1 MB, free: 3.402 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.083e-05/0.01088, allocations: 43.97 kB / 440.2 MB, free: 3.359 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.728e-05/0.01096, allocations: 118.2 kB / 440.3 MB, free: 3.207 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001455/0.0111, allocations: 182.5 kB / 440.4 MB, free: 2.992 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.01111, allocations: 4 kB / 440.5 MB, free: 2.988 MB / 410.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001889/0.01129, allocations: 205.5 kB / 440.7 MB, free: 2.781 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.01131, allocations: 18.94 kB / 440.7 MB, free: 2.766 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.01131, allocations: 0 / 440.7 MB, free: 2.766 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.01133, allocations: 8 kB / 440.7 MB, free: 2.758 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001426/0.01147, allocations: 47.97 kB / 440.7 MB, free: 2.711 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006099/0.01208, allocations: 1.32 MB / 442 MB, free: 1.277 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.181e-05/0.01214, allocations: 19.83 kB / 442.1 MB, free: 1.258 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.392e-05/0.01215, allocations: 15.98 kB / 442.1 MB, free: 1.242 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (23): * Single equations (assignments): 22 * 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 8.072e-05/0.01223, allocations: 140.6 kB / 442.2 MB, free: 1.098 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.402e-05/0.01226, allocations: 27.78 kB / 442.2 MB, free: 1.07 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001415/0.0124, allocations: 143 kB / 442.4 MB, free: 0.9219 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.0124, allocations: 0 / 442.4 MB, free: 0.9219 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.0124, allocations: 4 kB / 442.4 MB, free: 0.918 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.01241, allocations: 0 / 442.4 MB, free: 0.918 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003827/0.01279, allocations: 459 kB / 442.8 MB, free: 424 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.01279, allocations: 3.984 kB / 442.8 MB, free: 420 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.294e-05/0.01288, allocations: 28.05 kB / 442.9 MB, free: 392 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.01288, allocations: 4 kB / 442.9 MB, free: 388 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.01289, allocations: 8 kB / 442.9 MB, free: 380 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1609/0.1738, allocations: 1.303 MB / 444.2 MB, free: 49.71 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.1738, allocations: 3.375 kB / 444.2 MB, free: 49.71 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002623/0.1741, allocations: 309.5 kB / 444.5 MB, free: 49.56 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.577e-05/0.1741, allocations: 22.33 kB / 444.5 MB, free: 49.56 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.442e-05/0.1741, allocations: 4.281 kB / 444.5 MB, free: 49.56 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.826e-05/0.1742, allocations: 1.875 kB / 444.5 MB, free: 49.56 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.249e-05/0.1742, allocations: 15 kB / 444.5 MB, free: 49.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.181e-05/0.1742, allocations: 4.312 kB / 444.5 MB, free: 49.55 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.512e-05/0.1743, allocations: 153.3 kB / 444.7 MB, free: 49.48 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1743, allocations: 0 / 444.7 MB, free: 49.48 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002421/0.1745, allocations: 50.97 kB / 444.7 MB, free: 49.48 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (inertia.w,constantTorque.phi) * 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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 Backend phase and start with SimCode phase: time 0.0002928/0.1748, allocations: 0.8296 MB / 445.6 MB, free: 48.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000249/0.1751, allocations: 134.7 kB / 445.7 MB, free: 48.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1751, allocations: 0 / 445.7 MB, free: 48.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 7.269e-05/0.1752, allocations: 57.81 kB / 445.8 MB, free: 48.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002988/0.1755, allocations: 34.25 kB / 445.8 MB, free: 48.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001536/0.177, allocations: 2.293 MB / 448.1 MB, free: 47.33 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.499e-05/0.1771, allocations: 133.6 kB / 448.2 MB, free: 47.25 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 6.925e-05/0.1771, allocations: 27.92 kB / 448.2 MB, free: 47.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.232e-05/0.1772, allocations: 66.55 kB / 448.3 MB, free: 47.23 MB / 410.7 MB Notification: Performance of SimCode: time 2.064e-06/0.1772, allocations: 0 / 448.3 MB, free: 47.23 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01942/0.1966, allocations: 4.465 MB / 452.8 MB, free: 46.16 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.331/7.528, allocations: 3.984 kB / 452.8 MB, free: 46.16 MB / 410.7 MB " [Timeout remaining time 652] (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.34279812220484] Failed to read output from testmodel.py, exit status != 0: 7.615756758488715 7.622250296 7.613813264 Calling exit ...