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.001334/0.001334, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002009/0.002009, allocations: 215.8 kB / 23.73 MB, free: 4.156 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.533/1.533, allocations: 230.6 MB / 257.5 MB, free: 7.816 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.1914/0.1914, allocations: 38.55 MB / 352.5 MB, free: 12.3 MB / 286.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.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: 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.00208/0.00208, allocations: 59.91 kB / 492.5 MB, free: 4.699 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.362/0.3641, allocations: 62.47 MB / 0.5419 GB, free: 236 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.005654/0.3697, allocations: 3.316 MB / 0.5452 GB, free: 13.67 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002108/0.3719, allocations: 1.177 MB / 0.5463 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001463/0.372, allocations: 9.344 kB / 0.5463 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006698/0.3727, allocations: 154.7 kB / 0.5465 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004597/0.3731, allocations: 175.2 kB / 0.5466 GB, free: 12.5 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000331/0.3735, allocations: 131.6 kB / 0.5468 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000373/0.3738, allocations: 289 kB / 0.547 GB, free: 12.24 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000285/0.3741, allocations: 114.4 kB / 0.5472 GB, free: 12.16 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002713/0.3744, allocations: 132.9 kB / 0.5473 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002017/0.3746, allocations: 106 kB / 0.5474 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.816e-05/0.3746, allocations: 13.88 kB / 0.5474 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003657/0.375, allocations: 192 kB / 0.5476 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.3751, allocations: 67.19 kB / 0.5476 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.3752, allocations: 72.55 kB / 0.5477 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004794/0.3757, allocations: 295.8 kB / 0.548 GB, free: 11.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.3757, allocations: 1.125 kB / 0.548 GB, free: 11.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3757, allocations: 0 / 0.548 GB, free: 11.66 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.3757, allocations: 0 / 0.548 GB, free: 11.66 MB / 398.1 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.0007581/0.3765, allocations: 443 kB / 0.5484 GB, free: 11.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.3765, allocations: 13.17 kB / 0.5484 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.8e-05/0.3766, allocations: 49.23 kB / 0.5485 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007221/0.3773, allocations: 77.72 kB / 0.5486 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000379/0.3777, allocations: 205 kB / 0.5487 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.966e-05/0.3777, allocations: 11.61 kB / 0.5488 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.939e-05/0.3778, allocations: 19.53 kB / 0.5488 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005326/0.3783, allocations: 267.6 kB / 0.549 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.3783, allocations: 5.156 kB / 0.549 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.315e-05/0.3783, allocations: 6.656 kB / 0.549 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.114e-05/0.3784, allocations: 14.28 kB / 0.5491 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004008/0.3788, allocations: 219.9 kB / 0.5493 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001833/0.3806, allocations: 1.121 MB / 0.5504 GB, free: 9.656 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002657/0.3809, allocations: 124.9 kB / 0.5505 GB, free: 9.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.516e-05/0.3809, allocations: 46.95 kB / 0.5505 GB, free: 9.535 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.381, allocations: 2.094 kB / 0.5505 GB, free: 9.535 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.15e-05/0.381, allocations: 32.75 kB / 0.5506 GB, free: 9.496 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 1.423e-06/0.381, allocations: 0 / 0.5506 GB, free: 9.496 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003859/0.3814, allocations: 175.6 kB / 0.5507 GB, free: 9.391 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.241e-05/0.3815, allocations: 78.2 kB / 0.5508 GB, free: 9.297 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002428/0.3817, allocations: 214.2 kB / 0.551 GB, free: 9.137 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.523e-05/0.3817, allocations: 29.7 kB / 0.551 GB, free: 9.102 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001327/0.3819, allocations: 156.3 kB / 0.5512 GB, free: 8.957 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.642e-05/0.3819, allocations: 48.16 kB / 0.5512 GB, free: 8.914 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.038e-05/0.382, allocations: 44.44 kB / 0.5513 GB, free: 8.879 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.3822, allocations: 327.8 kB / 0.5516 GB, free: 8.555 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.407e-05/0.3822, allocations: 43.09 kB / 0.5516 GB, free: 8.535 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001497/0.3824, allocations: 130.6 kB / 0.5517 GB, free: 8.406 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002459/0.3826, allocations: 180.8 kB / 0.5519 GB, free: 8.254 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3826, allocations: 0 / 0.5519 GB, free: 8.254 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003328/0.383, allocations: 212 kB / 0.5521 GB, free: 8.133 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.383, allocations: 5.688 kB / 0.5521 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.383, allocations: 3.125 kB / 0.5521 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.292e-05/0.383, allocations: 7.438 kB / 0.5521 GB, free: 8.129 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002618/0.3833, allocations: 50.97 kB / 0.5522 GB, free: 8.117 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001173/0.3845, allocations: 1.312 MB / 0.5535 GB, free: 6.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001196/0.3846, allocations: 22.78 kB / 0.5535 GB, free: 6.754 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.923e-05/0.3846, allocations: 7.156 kB / 0.5535 GB, free: 6.754 MB / 398.1 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 0.0001539/0.3848, allocations: 152.3 kB / 0.5536 GB, free: 6.609 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.572e-05/0.3848, allocations: 19.52 kB / 0.5537 GB, free: 6.598 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002578/0.3851, allocations: 138.8 kB / 0.5538 GB, free: 6.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.3851, allocations: 6.375 kB / 0.5538 GB, free: 6.496 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.803e-06/0.3851, allocations: 1.062 kB / 0.5538 GB, free: 6.496 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.3851, allocations: 0 / 0.5538 GB, free: 6.496 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007136/0.3858, allocations: 455.5 kB / 0.5542 GB, free: 6.102 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.3858, allocations: 5.453 kB / 0.5542 GB, free: 6.098 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001701/0.386, allocations: 32.3 kB / 0.5543 GB, free: 6.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.386, allocations: 1.406 kB / 0.5543 GB, free: 6.09 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.386, allocations: 1.469 kB / 0.5543 GB, free: 6.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001003/0.387, allocations: 1.333 MB / 0.5556 GB, free: 4.719 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.387, allocations: 2.094 kB / 0.5556 GB, free: 4.719 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003876/0.3874, allocations: 302.1 kB / 0.5559 GB, free: 4.484 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.043e-05/0.3874, allocations: 22.22 kB / 0.5559 GB, free: 4.469 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.611e-05/0.3874, allocations: 3.125 kB / 0.5559 GB, free: 4.469 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.811e-05/0.3875, allocations: 1.062 kB / 0.5559 GB, free: 4.469 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.797e-05/0.3876, allocations: 16.47 kB / 0.5559 GB, free: 4.457 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.339e-05/0.3876, allocations: 4.531 kB / 0.5559 GB, free: 4.457 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001452/0.3877, allocations: 149 kB / 0.5561 GB, free: 4.348 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3877, allocations: 0 / 0.5561 GB, free: 4.348 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000355/0.3881, allocations: 46.27 kB / 0.5561 GB, free: 4.34 MB / 398.1 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.000741/0.3888, allocations: 0.8451 MB / 0.5569 GB, free: 3.562 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003337/0.3892, allocations: 125.2 kB / 0.557 GB, free: 3.508 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3892, allocations: 1.094 kB / 0.557 GB, free: 3.508 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001538/0.3893, allocations: 59.38 kB / 0.5571 GB, free: 3.48 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004052/0.3897, allocations: 39.91 kB / 0.5571 GB, free: 3.461 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003367/0.3931, allocations: 2.361 MB / 0.5594 GB, free: 1.465 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001541/0.3932, allocations: 128.9 kB / 0.5596 GB, free: 1.32 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001111/0.3934, allocations: 29.62 kB / 0.5596 GB, free: 1.289 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001148/0.3935, allocations: 59.41 kB / 0.5597 GB, free: 1.23 MB / 398.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3935, allocations: 0 / 0.5597 GB, free: 1.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0358/0.4293, allocations: 4.326 MB / 0.5639 GB, free: 13.04 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.68/13.11, allocations: 13.41 kB / 0.5639 GB, free: 13.03 MB / 414.1 MB " [Timeout remaining time 647] (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: 15.951403645798564] Failed to read output from testmodel.py, exit status != 0: 13.22620960092172 13.243195218 12.86426308 Calling exit ...