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.00134/0.00134, allocations: 109.2 kB / 20.43 MB, free: 1.473 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.001384/0.001384, allocations: 209.4 kB / 23.74 MB, free: 4.691 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.474/1.474, allocations: 230.6 MB / 257.5 MB, free: 8.02 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.1875/0.1875, allocations: 38.53 MB / 352.5 MB, free: 12.52 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.002204/0.002204, allocations: 70.7 kB / 492.5 MB, free: 4.875 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3529/0.3551, allocations: 62.48 MB / 0.542 GB, free: 416 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.006748/0.3618, allocations: 5.075 MB / 0.547 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003869/0.3657, allocations: 2.554 MB / 0.5495 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002561/0.366, allocations: 17.81 kB / 0.5495 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001314/0.3673, allocations: 451.9 kB / 0.5499 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001147/0.3684, allocations: 0.5122 MB / 0.5504 GB, free: 9.617 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006872/0.3691, allocations: 279.6 kB / 0.5507 GB, free: 9.406 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008521/0.37, allocations: 0.7348 MB / 0.5514 GB, free: 8.996 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004873/0.3704, allocations: 293.5 kB / 0.5517 GB, free: 8.805 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005313/0.371, allocations: 336.6 kB / 0.552 GB, free: 8.613 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004867/0.3715, allocations: 359.8 kB / 0.5523 GB, free: 8.395 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.799e-05/0.3715, allocations: 39.5 kB / 0.5524 GB, free: 8.391 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001126/0.3726, allocations: 0.6433 MB / 0.553 GB, free: 8.039 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000218/0.3729, allocations: 205.3 kB / 0.5532 GB, free: 7.906 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000265/0.3731, allocations: 250.3 kB / 0.5534 GB, free: 7.746 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001125/0.3743, allocations: 0.7591 MB / 0.5542 GB, free: 7.281 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.3743, allocations: 1.094 kB / 0.5542 GB, free: 7.281 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.3743, allocations: 0 / 0.5542 GB, free: 7.281 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.3743, allocations: 0 / 0.5542 GB, free: 7.281 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.001174/0.3754, allocations: 0.7183 MB / 0.5549 GB, free: 6.695 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.3755, allocations: 12.75 kB / 0.5549 GB, free: 6.695 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001066/0.3756, allocations: 87.23 kB / 0.555 GB, free: 6.617 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001621/0.3772, allocations: 206.6 kB / 0.5552 GB, free: 6.52 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005699/0.3778, allocations: 305.2 kB / 0.5555 GB, free: 6.266 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.691e-05/0.3778, allocations: 30.41 kB / 0.5555 GB, free: 6.25 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.974e-05/0.3779, allocations: 40.56 kB / 0.5555 GB, free: 6.238 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.3789, allocations: 0.6364 MB / 0.5561 GB, free: 5.832 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.528e-05/0.3789, allocations: 5.047 kB / 0.5562 GB, free: 5.828 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.963e-05/0.379, allocations: 16.53 kB / 0.5562 GB, free: 5.816 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.638e-05/0.379, allocations: 34.95 kB / 0.5562 GB, free: 5.809 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001038/0.3801, allocations: 0.6055 MB / 0.5568 GB, free: 5.246 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003506/0.3836, allocations: 2.192 MB / 0.5589 GB, free: 2.945 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006809/0.3843, allocations: 365.5 kB / 0.5593 GB, free: 2.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003308/0.3846, allocations: 217.6 kB / 0.5595 GB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.742e-05/0.3846, allocations: 8 kB / 0.5595 GB, free: 2.344 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.616e-05/0.3847, allocations: 38.56 kB / 0.5595 GB, free: 2.297 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.074e-06/0.3847, allocations: 0 / 0.5595 GB, free: 2.297 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.003461/0.3881, allocations: 1.559 MB / 0.5611 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.546e-05/0.3882, allocations: 89.05 kB / 0.5611 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003015/0.3885, allocations: 280.2 kB / 0.5614 GB, free: 320 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.508e-05/0.3885, allocations: 29.7 kB / 0.5614 GB, free: 284 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001729/0.3887, allocations: 236.7 kB / 0.5617 GB, free: 40 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000153/0.3889, allocations: 162.6 kB / 0.5618 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001351/0.389, allocations: 86.14 kB / 0.5619 GB, free: 15.79 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001769/0.3892, allocations: 350.7 kB / 0.5622 GB, free: 15.44 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002761/0.3895, allocations: 172.9 kB / 0.5624 GB, free: 15.27 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004007/0.3899, allocations: 297.7 kB / 0.5627 GB, free: 14.93 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000779/0.3906, allocations: 0.5005 MB / 0.5632 GB, free: 14.38 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3906, allocations: 0 / 0.5632 GB, free: 14.38 MB / 414.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001219/0.3919, allocations: 0.6773 MB / 0.5638 GB, free: 13.7 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.3919, allocations: 10.97 kB / 0.5638 GB, free: 13.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.3919, allocations: 4 kB / 0.5638 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005995/0.3925, allocations: 173 kB / 0.564 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004012/0.3929, allocations: 99.81 kB / 0.5641 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003943/0.3968, allocations: 2.678 MB / 0.5667 GB, free: 10.63 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003053/0.3971, allocations: 19.98 kB / 0.5667 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.977e-05/0.3972, allocations: 23.98 kB / 0.5668 GB, free: 10.59 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.0003144/0.3975, allocations: 197.7 kB / 0.567 GB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.63e-05/0.3976, allocations: 39.7 kB / 0.567 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001279/0.3989, allocations: 0.6295 MB / 0.5676 GB, free: 9.695 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.3989, allocations: 4 kB / 0.5676 GB, free: 9.691 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.3989, allocations: 7.938 kB / 0.5676 GB, free: 9.684 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.3989, allocations: 3.984 kB / 0.5676 GB, free: 9.68 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002463/0.4014, allocations: 1.32 MB / 0.5689 GB, free: 8.285 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.4014, allocations: 0 / 0.5689 GB, free: 8.285 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003651/0.4017, allocations: 75.89 kB / 0.569 GB, free: 8.211 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004669/0.4022, allocations: 148.7 kB / 0.5691 GB, free: 8.062 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.185e-05/0.4022, allocations: 11.98 kB / 0.5691 GB, free: 8.051 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003343/0.4056, allocations: 2.465 MB / 0.5715 GB, free: 5.477 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.4056, allocations: 0 / 0.5715 GB, free: 5.477 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001578/0.4071, allocations: 0.9539 MB / 0.5725 GB, free: 4.492 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.4073, allocations: 39.8 kB / 0.5725 GB, free: 4.453 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.854e-05/0.4073, allocations: 7.938 kB / 0.5725 GB, free: 4.445 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002049/0.4075, allocations: 19.98 kB / 0.5725 GB, free: 4.426 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.783e-05/0.4076, allocations: 39.88 kB / 0.5726 GB, free: 4.387 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.224e-05/0.4076, allocations: 12 kB / 0.5726 GB, free: 4.375 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002607/0.4079, allocations: 203.1 kB / 0.5728 GB, free: 4.176 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4079, allocations: 0 / 0.5728 GB, free: 4.176 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000771/0.4086, allocations: 136 kB / 0.5729 GB, free: 4.043 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.00205/0.4107, allocations: 1.494 MB / 0.5744 GB, free: 2.508 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001383/0.4121, allocations: 0.65 MB / 0.575 GB, free: 1.844 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.4121, allocations: 0 / 0.575 GB, free: 1.844 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007107/0.4128, allocations: 407.8 kB / 0.5754 GB, free: 1.434 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005285/0.4133, allocations: 76.11 kB / 0.5755 GB, free: 1.363 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006593/0.4199, allocations: 4.457 MB / 0.5798 GB, free: 12.72 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006204/0.4205, allocations: 0.8747 MB / 0.5807 GB, free: 11.82 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002296/0.4208, allocations: 71.23 kB / 0.5807 GB, free: 11.75 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000225/0.421, allocations: 151.4 kB / 0.5809 GB, free: 11.6 MB / 430.1 MB Notification: Performance of SimCode: time 1.122e-06/0.421, allocations: 4 kB / 0.5809 GB, free: 11.59 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05804/0.479, allocations: 10.44 MB / 0.5911 GB, free: 1.281 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.29/13.77, allocations: 3.234 kB / 0.5911 GB, free: 1.281 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.586964688962325] Failed to read output from testmodel.py, exit status != 0: 13.891529562184587 13.916453106 13.537296183 Calling exit ...