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.001756/0.001756, allocations: 112.5 kB / 21.22 MB, free: 0.7305 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.002155/0.002155, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.529/1.529, allocations: 230.6 MB / 258.3 MB, free: 8 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.2222/0.2222, allocations: 38.52 MB / 353.2 MB, free: 12.54 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.002034/0.002034, allocations: 59.91 kB / 493.3 MB, free: 4.898 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3377/0.3398, allocations: 62.46 MB / 0.5428 GB, free: 456 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.005401/0.3452, allocations: 3.459 MB / 0.5461 GB, free: 13.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002147/0.3473, allocations: 1.277 MB / 0.5474 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001732/0.3475, allocations: 13.84 kB / 0.5474 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007057/0.3482, allocations: 162.1 kB / 0.5475 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004794/0.3487, allocations: 183.1 kB / 0.5477 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003623/0.349, allocations: 134.7 kB / 0.5479 GB, free: 12.33 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003911/0.3494, allocations: 285.1 kB / 0.5481 GB, free: 12.17 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003099/0.3497, allocations: 121.1 kB / 0.5482 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000321/0.3501, allocations: 129.2 kB / 0.5484 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002269/0.3503, allocations: 118 kB / 0.5485 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.983e-05/0.3503, allocations: 13.62 kB / 0.5485 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000404/0.3507, allocations: 235.2 kB / 0.5487 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.874e-05/0.3508, allocations: 67.27 kB / 0.5488 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001311/0.3509, allocations: 97.05 kB / 0.5489 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004579/0.3514, allocations: 285.3 kB / 0.5491 GB, free: 11.54 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3514, allocations: 5 kB / 0.5491 GB, free: 11.54 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3514, allocations: 0 / 0.5491 GB, free: 11.54 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.705e-06/0.3514, allocations: 0 / 0.5491 GB, free: 11.54 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.0007136/0.3521, allocations: 436.7 kB / 0.5496 GB, free: 11.14 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.3522, allocations: 17.86 kB / 0.5496 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.969e-05/0.3522, allocations: 5.047 kB / 0.5496 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.796e-05/0.3522, allocations: 52.98 kB / 0.5496 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006932/0.3529, allocations: 76.72 kB / 0.5497 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003438/0.3533, allocations: 197.1 kB / 0.5499 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.816e-05/0.3533, allocations: 15.81 kB / 0.5499 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.791e-05/0.3533, allocations: 23.19 kB / 0.5499 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00046/0.3538, allocations: 262.9 kB / 0.5502 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.3538, allocations: 0 / 0.5502 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.494e-05/0.3539, allocations: 6.375 kB / 0.5502 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.341e-05/0.3539, allocations: 13.81 kB / 0.5502 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003851/0.3543, allocations: 217.7 kB / 0.5504 GB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001824/0.3561, allocations: 1.161 MB / 0.5515 GB, free: 9.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002447/0.3563, allocations: 130.5 kB / 0.5517 GB, free: 9.406 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.037e-05/0.3564, allocations: 44.05 kB / 0.5517 GB, free: 9.375 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.499e-05/0.3564, allocations: 1.281 kB / 0.5517 GB, free: 9.375 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.605e-05/0.3565, allocations: 40 kB / 0.5517 GB, free: 9.328 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 1.433e-06/0.3565, allocations: 0 / 0.5517 GB, free: 9.328 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003615/0.3568, allocations: 167.5 kB / 0.5519 GB, free: 9.23 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.338e-05/0.3569, allocations: 78.61 kB / 0.552 GB, free: 9.137 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000215/0.3571, allocations: 213.2 kB / 0.5522 GB, free: 8.977 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.069e-05/0.3572, allocations: 31.05 kB / 0.5522 GB, free: 8.941 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000114/0.3573, allocations: 158.5 kB / 0.5524 GB, free: 8.793 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.178e-05/0.3573, allocations: 45.48 kB / 0.5524 GB, free: 8.754 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.946e-05/0.3574, allocations: 47.61 kB / 0.5525 GB, free: 8.715 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001964/0.3576, allocations: 323.7 kB / 0.5528 GB, free: 8.395 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.249e-05/0.3577, allocations: 47.41 kB / 0.5528 GB, free: 8.371 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000169/0.3578, allocations: 117.9 kB / 0.5529 GB, free: 8.25 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002453/0.3581, allocations: 181 kB / 0.5531 GB, free: 8.094 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3581, allocations: 0 / 0.5531 GB, free: 8.094 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003217/0.3584, allocations: 211.5 kB / 0.5533 GB, free: 7.973 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.3584, allocations: 6.406 kB / 0.5533 GB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.308e-06/0.3584, allocations: 6.594 kB / 0.5533 GB, free: 7.969 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.3584, allocations: 4.625 kB / 0.5533 GB, free: 7.969 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002443/0.3587, allocations: 54.34 kB / 0.5534 GB, free: 7.953 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001187/0.3599, allocations: 1.317 MB / 0.5547 GB, free: 6.598 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001284/0.36, allocations: 18.39 kB / 0.5547 GB, free: 6.586 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.034e-05/0.36, allocations: 11.58 kB / 0.5547 GB, free: 6.582 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.0001518/0.3602, allocations: 148 kB / 0.5548 GB, free: 6.441 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.464e-05/0.3602, allocations: 20.27 kB / 0.5548 GB, free: 6.43 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003034/0.3605, allocations: 142 kB / 0.555 GB, free: 6.328 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.3605, allocations: 2.031 kB / 0.555 GB, free: 6.328 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.784e-06/0.3605, allocations: 1.25 kB / 0.555 GB, free: 6.328 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.3605, allocations: 0 / 0.555 GB, free: 6.328 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007107/0.3612, allocations: 475.7 kB / 0.5554 GB, free: 5.914 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.3612, allocations: 1.062 kB / 0.5554 GB, free: 5.914 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001714/0.3614, allocations: 31.64 kB / 0.5555 GB, free: 5.906 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.452e-06/0.3614, allocations: 5.297 kB / 0.5555 GB, free: 5.902 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.823e-05/0.3614, allocations: 10.23 kB / 0.5555 GB, free: 5.895 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009917/0.3624, allocations: 1.323 MB / 0.5568 GB, free: 4.531 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.3624, allocations: 1.594 kB / 0.5568 GB, free: 4.531 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003594/0.3628, allocations: 304.4 kB / 0.5571 GB, free: 4.293 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.353e-05/0.3628, allocations: 19 kB / 0.5571 GB, free: 4.281 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.693e-05/0.3628, allocations: 6.219 kB / 0.5571 GB, free: 4.277 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.539e-05/0.3629, allocations: 1.094 kB / 0.5571 GB, free: 4.277 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.313e-05/0.363, allocations: 20.62 kB / 0.5571 GB, free: 4.262 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.214e-05/0.363, allocations: 7.438 kB / 0.5571 GB, free: 4.258 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001411/0.3631, allocations: 145.5 kB / 0.5573 GB, free: 4.152 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3631, allocations: 4.062 kB / 0.5573 GB, free: 4.148 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003454/0.3635, allocations: 51.17 kB / 0.5573 GB, free: 4.137 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.0007121/0.3642, allocations: 0.8332 MB / 0.5581 GB, free: 3.367 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003429/0.3645, allocations: 121.5 kB / 0.5582 GB, free: 3.316 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.3645, allocations: 4 kB / 0.5582 GB, free: 3.312 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001631/0.3647, allocations: 55.31 kB / 0.5583 GB, free: 3.289 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000436/0.3651, allocations: 45.81 kB / 0.5583 GB, free: 3.266 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003353/0.3685, allocations: 2.363 MB / 0.5606 GB, free: 1.27 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004438/0.3689, allocations: 0.7447 MB / 0.5614 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001098/0.369, allocations: 26.06 kB / 0.5614 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/0.3691, allocations: 60.75 kB / 0.5615 GB, free: 488 kB / 398.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3691, allocations: 1.562 kB / 0.5615 GB, free: 488 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02742/0.3966, allocations: 3.996 MB / 0.5654 GB, free: 12.62 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.86/13.25, allocations: 7.922 kB / 0.5654 GB, free: 12.61 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: 16.270832264970522] Failed to read output from testmodel.py, exit status != 0: 13.428222160961013 13.453574773 13.097357492 Calling exit ...