Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.0007924/0.0007924, allocations: 79.7 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.0008161/0.0008161, allocations: 174.3 kB / 23.95 MB, free: 0.6094 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.8958/0.8958, allocations: 177.1 MB / 204.3 MB, free: 5.73 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.2339/0.2339, allocations: 29.41 MB / 290.1 MB, free: 2.434 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.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 430.2 MB, free: 13.59 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.473e-05/1.617e-05, allocations: 2.281 kB / 430.2 MB, free: 13.59 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.004034/0.004051, allocations: 4.723 MB / 434.9 MB, free: 8.84 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002259/0.00631, allocations: 2.332 MB / 437.3 MB, free: 6.496 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002288/0.006539, allocations: 19.88 kB / 437.3 MB, free: 6.477 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007489/0.007287, allocations: 430 kB / 437.7 MB, free: 6.055 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008257/0.008113, allocations: 0.5208 MB / 438.2 MB, free: 5.531 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004801/0.008593, allocations: 290.9 kB / 438.5 MB, free: 5.246 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006087/0.009202, allocations: 0.7551 MB / 439.3 MB, free: 4.488 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003847/0.009586, allocations: 289.7 kB / 439.5 MB, free: 4.203 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000489/0.01008, allocations: 446.6 kB / 440 MB, free: 3.766 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003217/0.0104, allocations: 303.1 kB / 440.3 MB, free: 3.469 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.774e-05/0.01043, allocations: 40 kB / 440.3 MB, free: 3.43 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006081/0.01104, allocations: 0.545 MB / 440.9 MB, free: 2.883 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001373/0.01118, allocations: 211.4 kB / 441.1 MB, free: 2.676 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001198/0.0113, allocations: 167.7 kB / 441.2 MB, free: 2.512 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006559/0.01196, allocations: 0.7945 MB / 442 MB, free: 1.715 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.01196, allocations: 7.938 kB / 442 MB, free: 1.707 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.01196, allocations: 0 / 442 MB, free: 1.707 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.01197, allocations: 0 / 442 MB, free: 1.707 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.000787/0.01275, allocations: 0.7077 MB / 442.7 MB, free: 0.9688 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.01279, allocations: 11.98 kB / 442.8 MB, free: 0.957 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.251e-05/0.01285, allocations: 82.7 kB / 442.8 MB, free: 0.8672 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000812/0.01366, allocations: 208.4 kB / 443 MB, free: 0.6641 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003538/0.01402, allocations: 312.4 kB / 443.3 MB, free: 336 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.253e-05/0.01404, allocations: 33.36 kB / 443.4 MB, free: 304 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.417e-05/0.01409, allocations: 48.31 kB / 443.4 MB, free: 256 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1532/0.1673, allocations: 0.6217 MB / 444 MB, free: 54.52 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.29e-05/0.1673, allocations: 3.344 kB / 444 MB, free: 54.52 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.017e-05/0.1673, allocations: 25.59 kB / 444.1 MB, free: 54.52 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.864e-05/0.1673, allocations: 30.2 kB / 444.1 MB, free: 54.52 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005332/0.1679, allocations: 0.6033 MB / 444.7 MB, free: 54.5 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001684/0.1696, allocations: 2.074 MB / 446.8 MB, free: 53.26 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003444/0.1699, allocations: 375.3 kB / 447.1 MB, free: 53.09 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001709/0.1701, allocations: 209.2 kB / 447.3 MB, free: 53.01 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.378e-05/0.1701, allocations: 7.078 kB / 447.4 MB, free: 53.01 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.578e-05/0.1701, allocations: 45.05 kB / 447.4 MB, free: 52.96 MB / 410.7 MB Notification: Performance of pre-optimization done (n=42): time 1.854e-06/0.1701, allocations: 0.5 kB / 447.4 MB, free: 52.96 MB / 410.7 MB Notification: Performance of matching and sorting (n=43): time 0.001827/0.1719, allocations: 1.559 MB / 449 MB, free: 52.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.59e-05/0.172, allocations: 80.3 kB / 449 MB, free: 52.21 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001466/0.1721, allocations: 288.6 kB / 449.3 MB, free: 52.05 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.1721, allocations: 32.8 kB / 449.4 MB, free: 52.01 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.503e-05/0.1722, allocations: 232.8 kB / 449.6 MB, free: 51.83 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.248e-05/0.1723, allocations: 163.1 kB / 449.7 MB, free: 51.71 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.883e-05/0.1723, allocations: 87.88 kB / 449.8 MB, free: 51.66 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.281e-05/0.1724, allocations: 343.6 kB / 450.2 MB, free: 51.33 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001519/0.1725, allocations: 178 kB / 450.3 MB, free: 51.27 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001721/0.1727, allocations: 291.6 kB / 450.6 MB, free: 51.09 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003551/0.1731, allocations: 0.5018 MB / 451.1 MB, free: 50.8 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1731, allocations: 0 / 451.1 MB, free: 50.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0005967/0.1737, allocations: 0.6719 MB / 451.8 MB, free: 50.54 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.1737, allocations: 7.969 kB / 451.8 MB, free: 50.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.423e-06/0.1737, allocations: 12.28 kB / 451.8 MB, free: 50.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003098/0.174, allocations: 179.7 kB / 452 MB, free: 50.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001805/0.1742, allocations: 97.16 kB / 452.1 MB, free: 50.49 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001659/0.1758, allocations: 2.653 MB / 454.7 MB, free: 48.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001164/0.1759, allocations: 24.95 kB / 454.8 MB, free: 48.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.158e-05/0.176, allocations: 23.44 kB / 454.8 MB, free: 48.62 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 (47): * Single equations (assignments): 46 * 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 {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0001091/0.1761, allocations: 190.1 kB / 455 MB, free: 48.47 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.404e-05/0.1761, allocations: 44.27 kB / 455 MB, free: 48.45 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005796/0.1767, allocations: 0.6279 MB / 455.6 MB, free: 48.19 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.085e-06/0.1767, allocations: 14.47 kB / 455.7 MB, free: 48.18 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-06/0.1767, allocations: 3.938 kB / 455.7 MB, free: 48.18 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.1767, allocations: 3.422 kB / 455.7 MB, free: 48.18 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001043/0.1777, allocations: 1.222 MB / 456.9 MB, free: 47.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.1777, allocations: 1.375 kB / 456.9 MB, free: 47.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001678/0.1779, allocations: 78.55 kB / 457 MB, free: 47.56 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002252/0.1781, allocations: 139.7 kB / 457.1 MB, free: 47.53 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.1781, allocations: 14.22 kB / 457.1 MB, free: 47.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001279/0.1794, allocations: 2.446 MB / 459.6 MB, free: 45.71 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1794, allocations: 0 / 459.6 MB, free: 45.71 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006973/0.1801, allocations: 0.9532 MB / 460.5 MB, free: 45.25 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.857e-05/0.1802, allocations: 33.36 kB / 460.5 MB, free: 45.23 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.368e-05/0.1802, allocations: 11.09 kB / 460.6 MB, free: 45.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.1803, allocations: 13.97 kB / 460.6 MB, free: 45.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.136e-05/0.1803, allocations: 34.62 kB / 460.6 MB, free: 45.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.797e-05/0.1803, allocations: 21.33 kB / 460.6 MB, free: 45.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.895e-05/0.1804, allocations: 198 kB / 460.8 MB, free: 45.09 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1804, allocations: 0 / 460.8 MB, free: 45.09 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003291/0.1808, allocations: 137.8 kB / 460.9 MB, free: 45.08 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.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 (38): * Single equations (assignments): 36 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000794/0.1816, allocations: 1.496 MB / 462.4 MB, free: 44.09 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006049/0.1822, allocations: 0.6461 MB / 463.1 MB, free: 43.81 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1822, allocations: 0 / 463.1 MB, free: 43.81 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003034/0.1825, allocations: 405.2 kB / 463.5 MB, free: 43.61 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002953/0.1828, allocations: 71.95 kB / 463.6 MB, free: 43.58 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002895/0.1857, allocations: 4.363 MB / 467.9 MB, free: 40.99 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001394/0.1858, allocations: 268.3 kB / 468.2 MB, free: 40.89 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001132/0.1859, allocations: 70.61 kB / 468.2 MB, free: 40.89 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/0.186, allocations: 148.9 kB / 468.4 MB, free: 40.78 MB / 410.7 MB Notification: Performance of SimCode: time 9.42e-07/0.186, allocations: 0 / 468.4 MB, free: 40.78 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02116/0.2072, allocations: 10.55 MB / 478.9 MB, free: 39.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.55/7.757, allocations: 5.25 kB / 479 MB, free: 39.09 MB / 410.7 MB " [Timeout remaining time 652] (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.608252177014947] Failed to read output from testmodel.py, exit status != 0: 7.846071353182197 7.85566037 7.841711837 Calling exit ...