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.001308/0.001308, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.00146/0.00146, allocations: 210.8 kB / 23.73 MB, free: 4.387 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.492/1.492, 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.1912/0.1912, allocations: 38.55 MB / 352.5 MB, free: 12.34 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.00214/0.00214, allocations: 67.91 kB / 492.5 MB, free: 4.738 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4206/0.4228, allocations: 62.46 MB / 0.5419 GB, free: 284 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.008898/0.4317, allocations: 5.225 MB / 0.547 GB, free: 12.29 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002895/0.4346, allocations: 1.074 MB / 0.5481 GB, free: 11.44 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003132/0.4349, allocations: 26.09 kB / 0.5481 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003463/0.4352, allocations: 83.08 kB / 0.5482 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009972/0.4362, allocations: 305.2 kB / 0.5485 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004008/0.4366, allocations: 148.2 kB / 0.5486 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001043/0.4377, allocations: 0.6976 MB / 0.5493 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003127/0.438, allocations: 113.1 kB / 0.5494 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006249/0.4386, allocations: 325.1 kB / 0.5497 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006206/0.4392, allocations: 326.5 kB / 0.55 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.908e-05/0.4393, allocations: 34.16 kB / 0.5501 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001033/0.4394, allocations: 33.94 kB / 0.5501 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002294/0.4396, allocations: 170.1 kB / 0.5503 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003123/0.44, allocations: 195.3 kB / 0.5504 GB, free: 9.918 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007488/0.4407, allocations: 0.494 MB / 0.5509 GB, free: 9.586 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.4407, allocations: 0 / 0.5509 GB, free: 9.586 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.4407, allocations: 0 / 0.5509 GB, free: 9.586 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.134e-05/0.4407, allocations: 1.562 kB / 0.5509 GB, free: 9.586 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.001711/0.4424, allocations: 0.7356 MB / 0.5516 GB, free: 9 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.891e-05/0.4425, allocations: 9.062 kB / 0.5517 GB, free: 9 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001118/0.4426, allocations: 76.25 kB / 0.5517 GB, free: 8.93 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001187/0.4427, allocations: 58.33 kB / 0.5518 GB, free: 8.898 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008731/0.4436, allocations: 389.1 kB / 0.5522 GB, free: 8.59 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.644e-05/0.4436, allocations: 23.94 kB / 0.5522 GB, free: 8.578 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.732e-05/0.4437, allocations: 40.23 kB / 0.5522 GB, free: 8.562 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008361/0.4446, allocations: 462.6 kB / 0.5527 GB, free: 8.246 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.599e-05/0.4446, allocations: 5.156 kB / 0.5527 GB, free: 8.242 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.165e-05/0.4446, allocations: 15.38 kB / 0.5527 GB, free: 8.23 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.697e-05/0.4446, allocations: 10.19 kB / 0.5527 GB, free: 8.23 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006135/0.4452, allocations: 310.8 kB / 0.553 GB, free: 8.082 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002456/0.4477, allocations: 1.637 MB / 0.5546 GB, free: 6.617 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002875/0.448, allocations: 145 kB / 0.5547 GB, free: 6.496 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.4481, allocations: 55.61 kB / 0.5548 GB, free: 6.453 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.014e-05/0.4481, allocations: 2.438 kB / 0.5548 GB, free: 6.453 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.301e-05/0.4482, allocations: 38 kB / 0.5548 GB, free: 6.41 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.583e-06/0.4482, allocations: 0 / 0.5548 GB, free: 6.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.001149/0.4493, allocations: 0.5504 MB / 0.5553 GB, free: 5.977 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.476e-05/0.4494, allocations: 105.8 kB / 0.5554 GB, free: 5.852 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004552/0.4499, allocations: 382.8 kB / 0.5558 GB, free: 5.609 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.549e-05/0.4499, allocations: 29.7 kB / 0.5558 GB, free: 5.574 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002458/0.4501, allocations: 285.4 kB / 0.5561 GB, free: 5.316 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.298e-05/0.4502, allocations: 62.84 kB / 0.5562 GB, free: 5.262 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.4503, allocations: 60.06 kB / 0.5562 GB, free: 5.219 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002109/0.4505, allocations: 347.9 kB / 0.5566 GB, free: 4.879 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001053/0.4506, allocations: 50.09 kB / 0.5566 GB, free: 4.855 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002477/0.4509, allocations: 194.5 kB / 0.5568 GB, free: 4.641 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003492/0.4512, allocations: 270.7 kB / 0.5571 GB, free: 4.316 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.4512, allocations: 4 kB / 0.5571 GB, free: 4.312 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004514/0.4517, allocations: 293.6 kB / 0.5573 GB, free: 4.02 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.4517, allocations: 4 kB / 0.5573 GB, free: 4.016 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.4517, allocations: 8 kB / 0.5573 GB, free: 4.008 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.142e-05/0.4517, allocations: 4 kB / 0.5573 GB, free: 4.004 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002608/0.452, allocations: 67.91 kB / 0.5574 GB, free: 3.938 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.711e-05/0.452, allocations: 16.48 kB / 0.5574 GB, free: 3.922 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001715/0.4522, allocations: 11.95 kB / 0.5574 GB, free: 3.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.382e-05/0.4522, allocations: 20.41 kB / 0.5575 GB, free: 3.891 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.0002236/0.4524, allocations: 189.6 kB / 0.5576 GB, free: 3.695 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.829e-05/0.4525, allocations: 39.75 kB / 0.5577 GB, free: 3.656 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003265/0.4528, allocations: 180.6 kB / 0.5579 GB, free: 3.473 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.605e-06/0.4528, allocations: 4 kB / 0.5579 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.4528, allocations: 0 / 0.5579 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.4528, allocations: 0 / 0.5579 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007282/0.4536, allocations: 494.2 kB / 0.5583 GB, free: 2.934 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.4536, allocations: 4 kB / 0.5583 GB, free: 2.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001849/0.4538, allocations: 31.98 kB / 0.5584 GB, free: 2.898 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.4538, allocations: 4.031 kB / 0.5584 GB, free: 2.895 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.718e-05/0.4538, allocations: 8 kB / 0.5584 GB, free: 2.887 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.4538, allocations: 3.938 kB / 0.5584 GB, free: 2.883 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/0.4538, allocations: 3.938 kB / 0.5584 GB, free: 2.879 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000464/0.4543, allocations: 396.2 kB / 0.5588 GB, free: 2.469 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.3e-05/0.4543, allocations: 39.66 kB / 0.5588 GB, free: 2.43 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.434e-05/0.4544, allocations: 4 kB / 0.5588 GB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001658/0.4545, allocations: 11.88 kB / 0.5588 GB, free: 2.414 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.318e-05/0.4546, allocations: 19.95 kB / 0.5588 GB, free: 2.395 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/0.4546, allocations: 4 kB / 0.5588 GB, free: 2.391 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002689/0.4549, allocations: 255.2 kB / 0.5591 GB, free: 2.145 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4549, allocations: 0 / 0.5591 GB, free: 2.145 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004362/0.4553, allocations: 76 kB / 0.5591 GB, free: 2.07 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.0007785/0.4561, allocations: 0.9267 MB / 0.5601 GB, free: 1.109 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003045/0.4564, allocations: 148.8 kB / 0.5602 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.4564, allocations: 8.125 kB / 0.5602 GB, free: 0.957 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.881e-05/0.4565, allocations: 51.92 kB / 0.5603 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007276/0.4572, allocations: 92.91 kB / 0.5603 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004454/0.4617, allocations: 3.413 MB / 0.5637 GB, free: 13.18 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002828/0.4619, allocations: 235.8 kB / 0.5639 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000187/0.4621, allocations: 55.25 kB / 0.564 GB, free: 12.87 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002117/0.4623, allocations: 147.4 kB / 0.5641 GB, free: 12.73 MB / 414.1 MB Notification: Performance of SimCode: time 9.72e-07/0.4623, allocations: 0 / 0.5641 GB, free: 12.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04424/0.5066, allocations: 7.907 MB / 0.5718 GB, free: 5.016 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.87, allocations: 4 kB / 0.5718 GB, free: 5.012 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_Frequency_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_Frequency.fmu > PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.64356491761282] Failed to read output from testmodel.py, exit status != 0: 11.985515633132309 12.002669826 11.558430902 Calling exit ...