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.00126/0.00126, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001432/0.001432, allocations: 211.9 kB / 24.51 MB, free: 3.945 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.54/1.54, allocations: 230.6 MB / 258.3 MB, free: 7.797 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.192/0.192, allocations: 38.56 MB / 353.2 MB, free: 12.39 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest",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.002147/0.002147, allocations: 68.19 kB / 493.3 MB, free: 4.711 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3883/0.3905, allocations: 62.46 MB / 0.5427 GB, free: 264 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.006996/0.3975, allocations: 3.313 MB / 0.5459 GB, free: 13.7 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001902/0.3994, allocations: 1.167 MB / 0.5471 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001396/0.3995, allocations: 14.28 kB / 0.5471 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006102/0.4001, allocations: 151 kB / 0.5472 GB, free: 12.67 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004346/0.4006, allocations: 179.4 kB / 0.5474 GB, free: 12.53 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003532/0.4009, allocations: 130.3 kB / 0.5475 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003717/0.4013, allocations: 289.1 kB / 0.5478 GB, free: 12.27 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002633/0.4015, allocations: 118.6 kB / 0.5479 GB, free: 12.19 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002508/0.4018, allocations: 128.6 kB / 0.548 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000194/0.402, allocations: 118.5 kB / 0.5481 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.534e-05/0.402, allocations: 13.81 kB / 0.5482 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003423/0.4024, allocations: 200.4 kB / 0.5484 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.688e-05/0.4024, allocations: 62.12 kB / 0.5484 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001038/0.4025, allocations: 78 kB / 0.5485 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000445/0.403, allocations: 284 kB / 0.5488 GB, free: 11.68 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.403, allocations: 7.875 kB / 0.5488 GB, free: 11.67 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.403, allocations: 0 / 0.5488 GB, free: 11.67 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.752e-06/0.403, allocations: 0 / 0.5488 GB, free: 11.67 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.0007155/0.4037, allocations: 437.4 kB / 0.5492 GB, free: 11.28 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.4038, allocations: 14.02 kB / 0.5492 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.563e-05/0.4038, allocations: 4.547 kB / 0.5492 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.49e-05/0.4038, allocations: 53.83 kB / 0.5493 GB, free: 11.22 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007036/0.4045, allocations: 80.97 kB / 0.5493 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003769/0.4049, allocations: 205.6 kB / 0.5495 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.765e-05/0.4049, allocations: 11.14 kB / 0.5495 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.71e-05/0.405, allocations: 19.19 kB / 0.5496 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004752/0.4055, allocations: 260.2 kB / 0.5498 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.928e-05/0.4055, allocations: 9.281 kB / 0.5498 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.616e-05/0.4055, allocations: 9.375 kB / 0.5498 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.148e-05/0.4055, allocations: 14.78 kB / 0.5498 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003677/0.4059, allocations: 213.3 kB / 0.55 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001655/0.4076, allocations: 1.119 MB / 0.5511 GB, free: 9.676 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002417/0.4078, allocations: 131.1 kB / 0.5513 GB, free: 9.582 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.522e-05/0.4079, allocations: 44.3 kB / 0.5513 GB, free: 9.551 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.747e-05/0.4079, allocations: 1.438 kB / 0.5513 GB, free: 9.551 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.33e-05/0.4079, allocations: 41.3 kB / 0.5513 GB, free: 9.504 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 1.783e-06/0.4079, allocations: 0 / 0.5513 GB, free: 9.504 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003681/0.4083, allocations: 163.2 kB / 0.5515 GB, free: 9.41 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.476e-05/0.4083, allocations: 82.62 kB / 0.5516 GB, free: 9.312 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002156/0.4086, allocations: 209 kB / 0.5518 GB, free: 9.156 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.045e-05/0.4086, allocations: 30.98 kB / 0.5518 GB, free: 9.121 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.4087, allocations: 159.2 kB / 0.552 GB, free: 8.973 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.853e-05/0.4087, allocations: 44.58 kB / 0.552 GB, free: 8.934 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.837e-05/0.4088, allocations: 44.39 kB / 0.552 GB, free: 8.898 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.409, allocations: 327 kB / 0.5524 GB, free: 8.574 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.179e-05/0.409, allocations: 47.97 kB / 0.5524 GB, free: 8.551 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001425/0.4092, allocations: 118.7 kB / 0.5525 GB, free: 8.434 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002378/0.4094, allocations: 187.4 kB / 0.5527 GB, free: 8.273 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.4094, allocations: 0.9688 kB / 0.5527 GB, free: 8.273 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000321/0.4097, allocations: 204 kB / 0.5529 GB, free: 8.16 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.4098, allocations: 6.75 kB / 0.5529 GB, free: 8.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.4098, allocations: 10.84 kB / 0.5529 GB, free: 8.152 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.4098, allocations: 2.938 kB / 0.5529 GB, free: 8.152 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002404/0.41, allocations: 54.97 kB / 0.553 GB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001069/0.4111, allocations: 1.319 MB / 0.5542 GB, free: 6.781 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001192/0.4112, allocations: 19.08 kB / 0.5543 GB, free: 6.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.149e-05/0.4112, allocations: 14.95 kB / 0.5543 GB, free: 6.762 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.0001429/0.4114, allocations: 148.8 kB / 0.5544 GB, free: 6.621 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.46e-05/0.4114, allocations: 19.95 kB / 0.5544 GB, free: 6.609 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002413/0.4117, allocations: 138.6 kB / 0.5546 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.4117, allocations: 2.625 kB / 0.5546 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-06/0.4117, allocations: 0 / 0.5546 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.4117, allocations: 1.25 kB / 0.5546 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006699/0.4123, allocations: 459.1 kB / 0.555 GB, free: 6.113 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.4124, allocations: 1.562 kB / 0.555 GB, free: 6.113 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001753/0.4125, allocations: 27.2 kB / 0.555 GB, free: 6.109 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.4125, allocations: 5.406 kB / 0.555 GB, free: 6.105 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.8e-05/0.4125, allocations: 10.56 kB / 0.5551 GB, free: 6.098 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00101/0.4136, allocations: 1.32 MB / 0.5563 GB, free: 4.738 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.582e-06/0.4136, allocations: 6.031 kB / 0.5563 GB, free: 4.734 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003705/0.4139, allocations: 302.8 kB / 0.5566 GB, free: 4.5 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.405e-05/0.414, allocations: 18.78 kB / 0.5567 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.805e-05/0.414, allocations: 10.38 kB / 0.5567 GB, free: 4.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/0.4141, allocations: 5.203 kB / 0.5567 GB, free: 4.477 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.118e-05/0.4141, allocations: 8.422 kB / 0.5567 GB, free: 4.473 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.444e-05/0.4141, allocations: 8.875 kB / 0.5567 GB, free: 4.469 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001365/0.4143, allocations: 148.5 kB / 0.5568 GB, free: 4.359 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4143, allocations: 0 / 0.5568 GB, free: 4.359 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000353/0.4146, allocations: 51.33 kB / 0.5569 GB, free: 4.348 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.0007356/0.4154, allocations: 0.8361 MB / 0.5577 GB, free: 3.578 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000322/0.4157, allocations: 121.4 kB / 0.5578 GB, free: 3.527 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4157, allocations: 0 / 0.5578 GB, free: 3.527 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001623/0.4159, allocations: 67.83 kB / 0.5579 GB, free: 3.492 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004007/0.4163, allocations: 38.02 kB / 0.5579 GB, free: 3.477 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002936/0.4192, allocations: 2.371 MB / 0.5602 GB, free: 1.457 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001433/0.4193, allocations: 132.9 kB / 0.5604 GB, free: 1.309 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.955e-05/0.4194, allocations: 25.62 kB / 0.5604 GB, free: 1.281 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.592e-05/0.4195, allocations: 55.41 kB / 0.5604 GB, free: 1.227 MB / 398.1 MB Notification: Performance of SimCode: time 2.71e-07/0.4195, allocations: 0 / 0.5604 GB, free: 1.227 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02649/0.446, allocations: 4.036 MB / 0.5644 GB, free: 13.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.97/13.42, allocations: 0 / 0.5644 GB, free: 13.34 MB / 414.1 MB " [Timeout remaining time 646] (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: 16.383111234987155] Failed to read output from testmodel.py, exit status != 0: 13.61019091901835 13.625705665 13.219450151 Calling exit ...