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.001443/0.001443, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001635/0.001635, allocations: 206.1 kB / 24.52 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.534/1.534, allocations: 230.6 MB / 258.3 MB, free: 8.035 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.1863/0.1863, allocations: 38.53 MB / 353.2 MB, free: 12.55 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",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.002063/0.002063, allocations: 66.88 kB / 493.3 MB, free: 4.891 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3742/0.3763, allocations: 62.46 MB / 0.5428 GB, free: 452 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.007335/0.3836, allocations: 5.09 MB / 0.5477 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004815/0.3884, allocations: 2.55 MB / 0.5502 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005822/0.389, allocations: 17.22 kB / 0.5502 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001603/0.3906, allocations: 452.1 kB / 0.5507 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001913/0.3925, allocations: 0.511 MB / 0.5512 GB, free: 9.641 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009286/0.3935, allocations: 293.1 kB / 0.5514 GB, free: 9.418 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001114/0.3946, allocations: 0.7259 MB / 0.5522 GB, free: 9.016 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005561/0.3951, allocations: 294.5 kB / 0.5524 GB, free: 8.824 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007074/0.3958, allocations: 336.5 kB / 0.5528 GB, free: 8.633 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006007/0.3964, allocations: 351.2 kB / 0.5531 GB, free: 8.422 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.134e-05/0.3965, allocations: 36.5 kB / 0.5531 GB, free: 8.422 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001342/0.3979, allocations: 0.6512 MB / 0.5538 GB, free: 8.062 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002288/0.3981, allocations: 197.3 kB / 0.554 GB, free: 7.938 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002812/0.3984, allocations: 249.2 kB / 0.5542 GB, free: 7.777 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001185/0.3995, allocations: 0.7685 MB / 0.5549 GB, free: 7.305 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3996, allocations: 0 / 0.5549 GB, free: 7.305 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3996, allocations: 0 / 0.5549 GB, free: 7.305 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.874e-06/0.3996, allocations: 4 kB / 0.5549 GB, free: 7.301 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.001161/0.4007, allocations: 0.7173 MB / 0.5556 GB, free: 6.719 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.4008, allocations: 12.45 kB / 0.5557 GB, free: 6.715 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.958e-05/0.4008, allocations: 12.03 kB / 0.5557 GB, free: 6.711 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.409e-05/0.4009, allocations: 83.09 kB / 0.5557 GB, free: 6.637 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001653/0.4025, allocations: 210.9 kB / 0.5559 GB, free: 6.535 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005443/0.4031, allocations: 305.5 kB / 0.5562 GB, free: 6.281 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.176e-05/0.4031, allocations: 30.19 kB / 0.5563 GB, free: 6.27 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.71e-05/0.4032, allocations: 44.27 kB / 0.5563 GB, free: 6.254 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.4043, allocations: 0.624 MB / 0.5569 GB, free: 5.859 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.051e-05/0.4043, allocations: 10.48 kB / 0.5569 GB, free: 5.852 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.133e-05/0.4043, allocations: 15.34 kB / 0.5569 GB, free: 5.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.975e-05/0.4044, allocations: 39.22 kB / 0.557 GB, free: 5.828 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001012/0.4054, allocations: 0.6102 MB / 0.5576 GB, free: 5.246 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003461/0.4089, allocations: 2.188 MB / 0.5597 GB, free: 2.949 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006445/0.4095, allocations: 369.5 kB / 0.5601 GB, free: 2.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003185/0.4098, allocations: 209.7 kB / 0.5603 GB, free: 2.359 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.406e-05/0.4099, allocations: 7.984 kB / 0.5603 GB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.134e-05/0.4099, allocations: 46.5 kB / 0.5603 GB, free: 2.297 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 5.32e-06/0.4099, allocations: 3.984 kB / 0.5603 GB, free: 2.293 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.003672/0.4136, allocations: 1.558 MB / 0.5618 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.223e-05/0.4136, allocations: 81.11 kB / 0.5619 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003138/0.414, allocations: 284.2 kB / 0.5622 GB, free: 320 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.465e-05/0.414, allocations: 37.7 kB / 0.5622 GB, free: 276 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001655/0.4142, allocations: 228.6 kB / 0.5624 GB, free: 40 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001578/0.4143, allocations: 162.8 kB / 0.5626 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001448/0.4145, allocations: 94.16 kB / 0.5627 GB, free: 15.78 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.4146, allocations: 346.6 kB / 0.563 GB, free: 15.43 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002866/0.4149, allocations: 180.9 kB / 0.5632 GB, free: 15.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003667/0.4153, allocations: 289.7 kB / 0.5635 GB, free: 14.93 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007157/0.416, allocations: 0.5043 MB / 0.564 GB, free: 14.38 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.416, allocations: 4 kB / 0.564 GB, free: 14.37 MB / 414.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.00125/0.4173, allocations: 0.6734 MB / 0.5646 GB, free: 13.69 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.4173, allocations: 8 kB / 0.5646 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/0.4173, allocations: 0 / 0.5646 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005979/0.4179, allocations: 172.7 kB / 0.5648 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003638/0.4182, allocations: 92.14 kB / 0.5649 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003791/0.422, allocations: 2.694 MB / 0.5675 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003408/0.4224, allocations: 15.98 kB / 0.5675 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.892e-05/0.4224, allocations: 23.98 kB / 0.5676 GB, free: 10.58 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.0003483/0.4228, allocations: 189.8 kB / 0.5677 GB, free: 10.39 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.936e-05/0.4229, allocations: 39.7 kB / 0.5678 GB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001366/0.4243, allocations: 0.6373 MB / 0.5684 GB, free: 9.691 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-06/0.4243, allocations: 7.938 kB / 0.5684 GB, free: 9.684 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.4243, allocations: 0 / 0.5684 GB, free: 9.684 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.4243, allocations: 3.984 kB / 0.5684 GB, free: 9.68 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00256/0.4268, allocations: 1.312 MB / 0.5697 GB, free: 8.293 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.147e-06/0.4268, allocations: 8 kB / 0.5697 GB, free: 8.285 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003806/0.4272, allocations: 79.89 kB / 0.5698 GB, free: 8.207 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004605/0.4277, allocations: 144.7 kB / 0.5699 GB, free: 8.062 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.636e-05/0.4277, allocations: 12 kB / 0.5699 GB, free: 8.051 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003294/0.431, allocations: 2.465 MB / 0.5723 GB, free: 5.477 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.431, allocations: 0 / 0.5723 GB, free: 5.477 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001556/0.4326, allocations: 0.9499 MB / 0.5733 GB, free: 4.496 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001163/0.4327, allocations: 39.73 kB / 0.5733 GB, free: 4.457 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.262e-05/0.4328, allocations: 12 kB / 0.5733 GB, free: 4.445 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002348/0.433, allocations: 12 kB / 0.5733 GB, free: 4.434 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.286e-05/0.4331, allocations: 35.92 kB / 0.5734 GB, free: 4.398 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.274e-05/0.4331, allocations: 16 kB / 0.5734 GB, free: 4.383 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002286/0.4333, allocations: 203 kB / 0.5736 GB, free: 4.184 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4333, allocations: 4 kB / 0.5736 GB, free: 4.18 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000765/0.4341, allocations: 136 kB / 0.5737 GB, free: 4.047 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.001946/0.4361, allocations: 1.498 MB / 0.5752 GB, free: 2.508 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001444/0.4375, allocations: 0.6461 MB / 0.5758 GB, free: 1.848 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.4375, allocations: 0 / 0.5758 GB, free: 1.848 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007205/0.4382, allocations: 407.8 kB / 0.5762 GB, free: 1.438 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000544/0.4388, allocations: 76.17 kB / 0.5762 GB, free: 1.367 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006577/0.4453, allocations: 4.466 MB / 0.5806 GB, free: 12.71 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006063/0.4459, allocations: 0.8669 MB / 0.5815 GB, free: 11.82 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002252/0.4462, allocations: 71.22 kB / 0.5815 GB, free: 11.75 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002443/0.4464, allocations: 151.4 kB / 0.5817 GB, free: 11.6 MB / 430.1 MB Notification: Performance of SimCode: time 8.81e-07/0.4464, allocations: 4 kB / 0.5817 GB, free: 11.6 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03898/0.4854, allocations: 10.47 MB / 0.5919 GB, free: 1.266 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.46/13.95, allocations: 10.28 kB / 0.5919 GB, free: 1.262 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 & /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: 16.96125122596277] Failed to read output from testmodel.py, exit status != 0: 14.135482340992894 14.165253448 13.760259899 Calling exit ...