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.001412/0.001412, 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.001541/0.001541, allocations: 211.7 kB / 23.73 MB, free: 4.16 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.507/1.507, allocations: 230.6 MB / 257.5 MB, free: 7.812 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.1893/0.1893, allocations: 38.56 MB / 352.5 MB, free: 12.31 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.002036/0.002036, allocations: 67.89 kB / 492.5 MB, free: 4.703 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3587/0.3607, allocations: 62.46 MB / 0.5419 GB, free: 256 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.006827/0.3675, allocations: 4.77 MB / 0.5466 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003821/0.3714, allocations: 2.337 MB / 0.5489 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000302/0.3717, allocations: 14.16 kB / 0.5489 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001341/0.373, allocations: 432.6 kB / 0.5493 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001191/0.3742, allocations: 0.5045 MB / 0.5498 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007201/0.3749, allocations: 293.1 kB / 0.5501 GB, free: 9.836 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008999/0.3758, allocations: 0.733 MB / 0.5508 GB, free: 9.426 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004793/0.3763, allocations: 282.9 kB / 0.5511 GB, free: 9.246 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005188/0.3768, allocations: 339.4 kB / 0.5514 GB, free: 9.051 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004685/0.3773, allocations: 327.7 kB / 0.5517 GB, free: 8.863 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.674e-05/0.3773, allocations: 36.06 kB / 0.5517 GB, free: 8.863 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009654/0.3783, allocations: 0.5392 MB / 0.5522 GB, free: 8.566 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002121/0.3785, allocations: 197.1 kB / 0.5524 GB, free: 8.441 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002465/0.3788, allocations: 209.9 kB / 0.5526 GB, free: 8.32 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001044/0.3798, allocations: 0.7699 MB / 0.5534 GB, free: 7.852 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3798, allocations: 0 / 0.5534 GB, free: 7.852 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.3798, allocations: 0 / 0.5534 GB, free: 7.852 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.828e-06/0.3798, allocations: 1.094 kB / 0.5534 GB, free: 7.852 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.001165/0.381, allocations: 0.7098 MB / 0.5541 GB, free: 7.273 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/0.381, allocations: 17.34 kB / 0.5541 GB, free: 7.266 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001008/0.3811, allocations: 86.77 kB / 0.5542 GB, free: 7.188 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001628/0.3828, allocations: 202.9 kB / 0.5544 GB, free: 7.094 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006309/0.3834, allocations: 306.7 kB / 0.5547 GB, free: 6.84 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.435e-05/0.3834, allocations: 29.72 kB / 0.5547 GB, free: 6.824 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.3836, allocations: 52.02 kB / 0.5547 GB, free: 6.801 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001035/0.3846, allocations: 0.6191 MB / 0.5554 GB, free: 6.418 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.326e-05/0.3846, allocations: 11.95 kB / 0.5554 GB, free: 6.406 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.945e-05/0.3847, allocations: 16 kB / 0.5554 GB, free: 6.391 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.155e-05/0.3847, allocations: 36.97 kB / 0.5554 GB, free: 6.355 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009983/0.3857, allocations: 0.6089 MB / 0.556 GB, free: 5.746 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003715/0.3894, allocations: 2.083 MB / 0.558 GB, free: 3.555 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006544/0.3901, allocations: 367.4 kB / 0.5584 GB, free: 3.18 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003358/0.3904, allocations: 209.7 kB / 0.5586 GB, free: 2.969 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.935e-05/0.3905, allocations: 11.98 kB / 0.5586 GB, free: 2.957 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.203e-05/0.3905, allocations: 38.5 kB / 0.5586 GB, free: 2.91 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.053e-06/0.3905, allocations: 7.938 kB / 0.5586 GB, free: 2.902 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.003603/0.3941, allocations: 1.554 MB / 0.5602 GB, free: 1.309 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.311e-05/0.3942, allocations: 81.11 kB / 0.5602 GB, free: 1.211 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003343/0.3945, allocations: 288.1 kB / 0.5605 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.603e-05/0.3946, allocations: 29.7 kB / 0.5605 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001858/0.3947, allocations: 232.5 kB / 0.5608 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001475/0.3949, allocations: 158.6 kB / 0.5609 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/0.395, allocations: 90.3 kB / 0.561 GB, free: 412 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.3952, allocations: 354.7 kB / 0.5613 GB, free: 48 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00033/0.3955, allocations: 176.9 kB / 0.5615 GB, free: 15.87 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003964/0.3959, allocations: 293.7 kB / 0.5618 GB, free: 15.54 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008079/0.3968, allocations: 0.5004 MB / 0.5623 GB, free: 14.99 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3968, allocations: 0 / 0.5623 GB, free: 14.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001291/0.398, allocations: 0.6734 MB / 0.5629 GB, free: 14.31 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.251e-05/0.3981, allocations: 11.94 kB / 0.563 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.3981, allocations: 4 kB / 0.563 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006123/0.3987, allocations: 177 kB / 0.5631 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003701/0.3991, allocations: 91.89 kB / 0.5632 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003982/0.403, allocations: 2.656 MB / 0.5658 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003295/0.4034, allocations: 23.98 kB / 0.5658 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.264e-05/0.4034, allocations: 20.11 kB / 0.5658 GB, free: 11.23 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.0002911/0.4037, allocations: 205.6 kB / 0.566 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.859e-05/0.4038, allocations: 39.7 kB / 0.5661 GB, free: 10.98 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001236/0.405, allocations: 0.6295 MB / 0.5667 GB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.405, allocations: 4 kB / 0.5667 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.405, allocations: 3.938 kB / 0.5667 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.405, allocations: 0 / 0.5667 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002339/0.4074, allocations: 1.219 MB / 0.5679 GB, free: 9.039 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.4074, allocations: 4 kB / 0.5679 GB, free: 9.035 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000368/0.4078, allocations: 79.89 kB / 0.568 GB, free: 8.957 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004693/0.4082, allocations: 148.7 kB / 0.5681 GB, free: 8.809 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.877e-05/0.4083, allocations: 12.08 kB / 0.5681 GB, free: 8.797 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003326/0.4116, allocations: 2.441 MB / 0.5705 GB, free: 6.246 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.4116, allocations: 4 kB / 0.5705 GB, free: 6.242 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001754/0.4133, allocations: 0.9538 MB / 0.5714 GB, free: 5.258 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/0.4135, allocations: 35.77 kB / 0.5715 GB, free: 5.223 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.044e-05/0.4135, allocations: 7.938 kB / 0.5715 GB, free: 5.215 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002227/0.4137, allocations: 20.03 kB / 0.5715 GB, free: 5.195 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.394e-05/0.4138, allocations: 31.94 kB / 0.5715 GB, free: 5.164 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.479e-05/0.4138, allocations: 15.98 kB / 0.5716 GB, free: 5.148 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00023/0.4141, allocations: 199.1 kB / 0.5717 GB, free: 4.953 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4141, allocations: 0 / 0.5717 GB, free: 4.953 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006625/0.4147, allocations: 140 kB / 0.5719 GB, free: 4.816 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.001892/0.4166, allocations: 1.494 MB / 0.5733 GB, free: 3.281 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001378/0.418, allocations: 0.6577 MB / 0.574 GB, free: 2.609 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.418, allocations: 0 / 0.574 GB, free: 2.609 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007365/0.4187, allocations: 407.8 kB / 0.5744 GB, free: 2.199 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005295/0.4193, allocations: 73.66 kB / 0.5744 GB, free: 2.133 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006609/0.4259, allocations: 4.463 MB / 0.5788 GB, free: 13.48 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003295/0.4262, allocations: 274.6 kB / 0.5791 GB, free: 13.19 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002289/0.4264, allocations: 67.23 kB / 0.5791 GB, free: 13.12 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000232/0.4267, allocations: 151.4 kB / 0.5793 GB, free: 12.97 MB / 430.1 MB Notification: Performance of SimCode: time 8.31e-07/0.4267, allocations: 0 / 0.5793 GB, free: 12.97 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04435/0.471, allocations: 10.4 MB / 0.5894 GB, free: 2.734 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.95/13.42, allocations: 15.56 kB / 0.5894 GB, free: 2.723 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.313143141102046] Failed to read output from testmodel.py, exit status != 0: 13.545574177987874 13.570590292 13.186425351 Calling exit ...