Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.Frequency.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.001335/0.001335, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.001466/0.001466, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.476/1.476, 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.1833/0.1833, allocations: 38.53 MB / 352.5 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.Introductory.Frequency,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Frequency",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Frequency,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Frequency",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.002068/0.002068, allocations: 67.91 kB / 492.5 MB, free: 4.883 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3115/0.3136, allocations: 62.46 MB / 0.542 GB, free: 448 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.007241/0.3208, allocations: 5.61 MB / 0.5475 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002345/0.3232, allocations: 1.146 MB / 0.5486 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002873/0.3234, allocations: 26.78 kB / 0.5486 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002773/0.3237, allocations: 87.02 kB / 0.5487 GB, free: 11.01 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007422/0.3245, allocations: 300 kB / 0.549 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003668/0.3248, allocations: 141 kB / 0.5491 GB, free: 10.65 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007824/0.3256, allocations: 0.702 MB / 0.5498 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002926/0.3259, allocations: 125.8 kB / 0.5499 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005646/0.3265, allocations: 316 kB / 0.5502 GB, free: 9.988 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005814/0.327, allocations: 354.3 kB / 0.5506 GB, free: 9.781 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.22e-05/0.3271, allocations: 34.44 kB / 0.5506 GB, free: 9.781 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.103e-05/0.3272, allocations: 37.59 kB / 0.5506 GB, free: 9.777 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000177/0.3274, allocations: 162.6 kB / 0.5508 GB, free: 9.668 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002832/0.3277, allocations: 235.4 kB / 0.551 GB, free: 9.52 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006363/0.3283, allocations: 0.4888 MB / 0.5515 GB, free: 9.188 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3283, allocations: 0 / 0.5515 GB, free: 9.188 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.3283, allocations: 0 / 0.5515 GB, free: 9.188 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.247e-06/0.3283, allocations: 0 / 0.5515 GB, free: 9.188 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001455/0.3298, allocations: 0.74 MB / 0.5522 GB, free: 8.598 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.3298, allocations: 10.38 kB / 0.5522 GB, free: 8.598 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.706e-05/0.3299, allocations: 74.88 kB / 0.5523 GB, free: 8.527 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000106/0.33, allocations: 53.48 kB / 0.5523 GB, free: 8.5 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007687/0.3308, allocations: 390.4 kB / 0.5527 GB, free: 8.191 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.495e-05/0.3308, allocations: 28.5 kB / 0.5527 GB, free: 8.176 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.321e-05/0.3309, allocations: 35.12 kB / 0.5528 GB, free: 8.164 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000736/0.3316, allocations: 467.2 kB / 0.5532 GB, free: 7.836 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.3316, allocations: 1.531 kB / 0.5532 GB, free: 7.836 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.615e-05/0.3317, allocations: 15.84 kB / 0.5532 GB, free: 7.824 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.3317, allocations: 9.25 kB / 0.5532 GB, free: 7.824 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004889/0.3322, allocations: 305.3 kB / 0.5535 GB, free: 7.684 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002214/0.3344, allocations: 1.718 MB / 0.5552 GB, free: 6.141 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000252/0.3346, allocations: 144.8 kB / 0.5553 GB, free: 6.02 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.046e-05/0.3347, allocations: 51.53 kB / 0.5554 GB, free: 5.98 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.361e-05/0.3348, allocations: 10.16 kB / 0.5554 GB, free: 5.973 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.533e-05/0.3348, allocations: 31.69 kB / 0.5554 GB, free: 5.934 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.904e-06/0.3348, allocations: 4 kB / 0.5554 GB, free: 5.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.001118/0.3359, allocations: 0.5428 MB / 0.556 GB, free: 5.504 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.374e-05/0.336, allocations: 105.1 kB / 0.5561 GB, free: 5.379 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004626/0.3365, allocations: 373.1 kB / 0.5564 GB, free: 5.145 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.488e-05/0.3365, allocations: 31.02 kB / 0.5565 GB, free: 5.109 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002387/0.3367, allocations: 284.7 kB / 0.5567 GB, free: 4.852 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.015e-05/0.3368, allocations: 63.19 kB / 0.5568 GB, free: 4.797 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.694e-05/0.3369, allocations: 63.27 kB / 0.5568 GB, free: 4.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002045/0.3371, allocations: 348.2 kB / 0.5572 GB, free: 4.41 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.945e-05/0.3372, allocations: 46.52 kB / 0.5572 GB, free: 4.391 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000251/0.3374, allocations: 198.3 kB / 0.5574 GB, free: 4.168 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003956/0.3378, allocations: 265.4 kB / 0.5577 GB, free: 3.91 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.3378, allocations: 2.188 kB / 0.5577 GB, free: 3.91 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005182/0.3384, allocations: 300.5 kB / 0.558 GB, free: 3.637 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.608e-05/0.3384, allocations: 7.984 kB / 0.558 GB, free: 3.629 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.432e-05/0.3384, allocations: 15.92 kB / 0.558 GB, free: 3.613 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.109e-05/0.3384, allocations: 4 kB / 0.558 GB, free: 3.609 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002806/0.3387, allocations: 75.84 kB / 0.5581 GB, free: 3.535 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.605e-05/0.3387, allocations: 12 kB / 0.5581 GB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002196/0.3389, allocations: 12.39 kB / 0.5581 GB, free: 3.512 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.629e-05/0.339, allocations: 20 kB / 0.5581 GB, free: 3.492 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (37): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002762/0.3392, allocations: 189.6 kB / 0.5583 GB, free: 3.297 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.289e-05/0.3393, allocations: 35.77 kB / 0.5583 GB, free: 3.262 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003382/0.3397, allocations: 164.8 kB / 0.5585 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.445e-06/0.3397, allocations: 4 kB / 0.5585 GB, free: 3.09 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.3397, allocations: 0 / 0.5585 GB, free: 3.09 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.3397, allocations: 3.984 kB / 0.5585 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008662/0.3406, allocations: 0.506 MB / 0.559 GB, free: 2.527 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.3406, allocations: 0 / 0.559 GB, free: 2.527 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001903/0.3408, allocations: 31.98 kB / 0.559 GB, free: 2.496 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.131e-06/0.3408, allocations: 7.938 kB / 0.559 GB, free: 2.488 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/0.3408, allocations: 4 kB / 0.559 GB, free: 2.484 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.462e-06/0.3408, allocations: 4 kB / 0.559 GB, free: 2.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.3408, allocations: 3.938 kB / 0.559 GB, free: 2.477 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004813/0.3413, allocations: 395.2 kB / 0.5594 GB, free: 2.07 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.01e-05/0.3413, allocations: 39.72 kB / 0.5594 GB, free: 2.031 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.13e-05/0.3414, allocations: 0 / 0.5594 GB, free: 2.031 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001683/0.3416, allocations: 11.94 kB / 0.5594 GB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.064e-05/0.3416, allocations: 19.94 kB / 0.5595 GB, free: 2 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.221e-05/0.3416, allocations: 8 kB / 0.5595 GB, free: 1.992 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002814/0.3419, allocations: 255.2 kB / 0.5597 GB, free: 1.75 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3419, allocations: 0 / 0.5597 GB, free: 1.75 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004551/0.3423, allocations: 72 kB / 0.5598 GB, free: 1.68 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind1.i,voltage2.theta,ind2.i) * 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 (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007827/0.3431, allocations: 0.9279 MB / 0.5607 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003434/0.3435, allocations: 143.8 kB / 0.5608 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3435, allocations: 5.188 kB / 0.5608 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001085/0.3436, allocations: 59.84 kB / 0.5609 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007444/0.3443, allocations: 100.7 kB / 0.561 GB, free: 424 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004468/0.3488, allocations: 3.408 MB / 0.5643 GB, free: 12.79 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005208/0.3493, allocations: 0.8425 MB / 0.5651 GB, free: 11.91 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001721/0.3495, allocations: 55.25 kB / 0.5652 GB, free: 11.86 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002005/0.3497, allocations: 147.4 kB / 0.5653 GB, free: 11.71 MB / 414.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3497, allocations: 0 / 0.5653 GB, free: 11.71 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03725/0.3869, allocations: 7.377 MB / 0.5725 GB, free: 4.488 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12.03, allocations: 6.812 kB / 0.5725 GB, free: 4.484 MB / 414.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.Frequency.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Introductory.Frequency_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 PowerSystems_PowerSystems_Examples_Introductory_Frequency.fmu > PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.85723161099304] Failed to read output from testmodel.py, exit status != 0: 12.144530466997821 12.171162189 11.838637456 Calling exit ...