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.001764/0.001764, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.00266/0.00266, allocations: 208.3 kB / 23.73 MB, free: 4.523 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.564/1.564, allocations: 230.6 MB / 257.5 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.1803/0.1803, allocations: 38.54 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.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: 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.002047/0.002047, allocations: 59.91 kB / 492.5 MB, free: 4.688 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3136/0.3156, allocations: 62.47 MB / 0.5419 GB, free: 236 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.006416/0.322, allocations: 4.76 MB / 0.5466 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0038/0.3258, allocations: 2.34 MB / 0.5489 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003135/0.3261, allocations: 22.12 kB / 0.5489 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001262/0.3274, allocations: 426 kB / 0.5493 GB, free: 10.44 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00136/0.3288, allocations: 0.5075 MB / 0.5498 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007208/0.3295, allocations: 288.4 kB / 0.5501 GB, free: 9.82 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008782/0.3304, allocations: 0.7382 MB / 0.5508 GB, free: 9.406 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004926/0.3309, allocations: 285.9 kB / 0.5511 GB, free: 9.223 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005436/0.3314, allocations: 340.6 kB / 0.5514 GB, free: 9.027 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004818/0.3319, allocations: 354.6 kB / 0.5517 GB, free: 8.812 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.27e-05/0.332, allocations: 36.5 kB / 0.5518 GB, free: 8.812 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009818/0.3329, allocations: 0.5352 MB / 0.5523 GB, free: 8.52 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002081/0.3331, allocations: 201.8 kB / 0.5525 GB, free: 8.391 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002329/0.3334, allocations: 201.2 kB / 0.5527 GB, free: 8.277 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001011/0.3344, allocations: 0.7702 MB / 0.5534 GB, free: 7.809 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3344, allocations: 0 / 0.5534 GB, free: 7.809 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3344, allocations: 0 / 0.5534 GB, free: 7.809 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.3344, allocations: 1.25 kB / 0.5534 GB, free: 7.809 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001215/0.3356, allocations: 0.7099 MB / 0.5541 GB, free: 7.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.504e-05/0.3357, allocations: 17.42 kB / 0.5541 GB, free: 7.223 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000114/0.3358, allocations: 85.95 kB / 0.5542 GB, free: 7.145 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00171/0.3375, allocations: 207.6 kB / 0.5544 GB, free: 7.047 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007121/0.3382, allocations: 310.2 kB / 0.5547 GB, free: 6.789 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.621e-05/0.3383, allocations: 34.42 kB / 0.5547 GB, free: 6.77 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000112/0.3384, allocations: 40.12 kB / 0.5548 GB, free: 6.758 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001173/0.3395, allocations: 0.626 MB / 0.5554 GB, free: 6.363 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.941e-05/0.3396, allocations: 6.672 kB / 0.5554 GB, free: 6.359 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.534e-05/0.3396, allocations: 22.39 kB / 0.5554 GB, free: 6.34 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.923e-05/0.3397, allocations: 32.98 kB / 0.5554 GB, free: 6.309 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009783/0.3407, allocations: 0.6089 MB / 0.556 GB, free: 5.699 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003597/0.3443, allocations: 2.079 MB / 0.5581 GB, free: 3.512 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006507/0.3449, allocations: 373.5 kB / 0.5584 GB, free: 3.129 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003284/0.3452, allocations: 213.6 kB / 0.5586 GB, free: 2.914 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.942e-05/0.3453, allocations: 4 kB / 0.5586 GB, free: 2.91 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.875e-05/0.3453, allocations: 46.55 kB / 0.5587 GB, free: 2.855 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.114e-06/0.3453, allocations: 0 / 0.5587 GB, free: 2.855 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.003407/0.3487, allocations: 1.554 MB / 0.5602 GB, free: 1.262 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.081e-05/0.3488, allocations: 85.11 kB / 0.5603 GB, free: 1.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003102/0.3491, allocations: 288.1 kB / 0.5606 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.388e-05/0.3491, allocations: 29.7 kB / 0.5606 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001681/0.3493, allocations: 232.5 kB / 0.5608 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001394/0.3495, allocations: 158.8 kB / 0.561 GB, free: 456 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001273/0.3496, allocations: 90.17 kB / 0.561 GB, free: 360 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.3497, allocations: 350.8 kB / 0.5614 GB, free: 0 / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000291/0.35, allocations: 176.9 kB / 0.5615 GB, free: 15.82 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003616/0.3504, allocations: 289.7 kB / 0.5618 GB, free: 15.5 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007089/0.3511, allocations: 0.5043 MB / 0.5623 GB, free: 14.95 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3511, allocations: 0 / 0.5623 GB, free: 14.95 MB / 414.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001175/0.3523, allocations: 0.6732 MB / 0.563 GB, free: 14.26 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.3523, allocations: 8 kB / 0.563 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.3523, allocations: 4 kB / 0.563 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000581/0.3529, allocations: 177.1 kB / 0.5631 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003646/0.3533, allocations: 91.89 kB / 0.5632 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00375/0.357, allocations: 2.671 MB / 0.5658 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003112/0.3573, allocations: 23.98 kB / 0.5659 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.676e-05/0.3574, allocations: 12 kB / 0.5659 GB, free: 11.18 MB / 414.1 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.0002743/0.3576, allocations: 209.5 kB / 0.5661 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.768e-05/0.3577, allocations: 43.7 kB / 0.5661 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001239/0.359, allocations: 0.6335 MB / 0.5667 GB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.231e-06/0.359, allocations: 4 kB / 0.5667 GB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.359, allocations: 3.938 kB / 0.5667 GB, free: 10.26 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.359, allocations: 4 kB / 0.5667 GB, free: 10.26 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002261/0.3612, allocations: 1.211 MB / 0.5679 GB, free: 8.984 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.3612, allocations: 0 / 0.5679 GB, free: 8.984 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000363/0.3616, allocations: 83.89 kB / 0.568 GB, free: 8.902 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004477/0.362, allocations: 144.7 kB / 0.5682 GB, free: 8.758 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.313e-05/0.3621, allocations: 15.98 kB / 0.5682 GB, free: 8.742 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003136/0.3652, allocations: 2.433 MB / 0.5705 GB, free: 6.199 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.3652, allocations: 4 kB / 0.5705 GB, free: 6.195 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001497/0.3667, allocations: 0.9499 MB / 0.5715 GB, free: 5.215 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001145/0.3668, allocations: 31.77 kB / 0.5715 GB, free: 5.184 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.676e-05/0.3669, allocations: 15.94 kB / 0.5715 GB, free: 5.168 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002157/0.3671, allocations: 16.03 kB / 0.5715 GB, free: 5.152 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.368e-05/0.3672, allocations: 39.88 kB / 0.5716 GB, free: 5.113 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.223e-05/0.3672, allocations: 15.98 kB / 0.5716 GB, free: 5.098 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002215/0.3674, allocations: 199.1 kB / 0.5718 GB, free: 4.902 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3674, allocations: 4.188 kB / 0.5718 GB, free: 4.898 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000651/0.3681, allocations: 136 kB / 0.5719 GB, free: 4.766 MB / 414.1 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.00184/0.3699, allocations: 1.502 MB / 0.5734 GB, free: 3.223 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001327/0.3712, allocations: 0.646 MB / 0.574 GB, free: 2.562 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3713, allocations: 3.938 kB / 0.574 GB, free: 2.559 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007016/0.372, allocations: 411.9 kB / 0.5744 GB, free: 2.145 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005277/0.3725, allocations: 64.55 kB / 0.5745 GB, free: 2.082 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006461/0.3789, allocations: 4.462 MB / 0.5788 GB, free: 13.43 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003268/0.3793, allocations: 270.6 kB / 0.5791 GB, free: 13.15 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002188/0.3795, allocations: 75.22 kB / 0.5792 GB, free: 13.07 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000232/0.3797, allocations: 143.4 kB / 0.5793 GB, free: 12.93 MB / 430.1 MB Notification: Performance of SimCode: time 1.402e-06/0.3797, allocations: 4 kB / 0.5793 GB, free: 12.93 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04546/0.4252, allocations: 10.57 MB / 0.5896 GB, free: 2.531 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13/13.43, allocations: 7.859 kB / 0.5896 GB, free: 2.527 MB / 430.1 MB " [Timeout remaining time 646] (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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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: 16.47043386596488] Failed to read output from testmodel.py, exit status != 0: 13.55053195002256 13.570684759 13.231212217 Calling exit ...