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.001607/0.001607, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.002403/0.002403, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.515/1.515, allocations: 230.6 MB / 258.3 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.2015/0.2015, allocations: 38.53 MB / 353.2 MB, free: 12.53 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Frequency,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Frequency",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.002029/0.002029, allocations: 59.91 kB / 493.3 MB, free: 4.898 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4052/0.4072, allocations: 62.47 MB / 0.5427 GB, free: 456 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.007878/0.4151, allocations: 5.611 MB / 0.5482 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002775/0.4178, allocations: 1.146 MB / 0.5493 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005451/0.4184, allocations: 26.25 kB / 0.5494 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003646/0.4188, allocations: 87.61 kB / 0.5495 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001201/0.42, allocations: 299.9 kB / 0.5497 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000511/0.4205, allocations: 140.2 kB / 0.5499 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001029/0.4215, allocations: 0.6989 MB / 0.5506 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002972/0.4218, allocations: 124.7 kB / 0.5507 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006433/0.4224, allocations: 329 kB / 0.551 GB, free: 9.988 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006309/0.4231, allocations: 334.1 kB / 0.5513 GB, free: 9.801 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.911e-05/0.4231, allocations: 33.41 kB / 0.5513 GB, free: 9.801 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.978e-05/0.4232, allocations: 34.62 kB / 0.5514 GB, free: 9.801 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002011/0.4234, allocations: 166.5 kB / 0.5515 GB, free: 9.688 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002973/0.4237, allocations: 239.7 kB / 0.5518 GB, free: 9.535 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007137/0.4244, allocations: 0.4887 MB / 0.5522 GB, free: 9.203 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.4244, allocations: 3.938 kB / 0.5522 GB, free: 9.199 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.4244, allocations: 0 / 0.5522 GB, free: 9.199 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.409e-05/0.4245, allocations: 0 / 0.5522 GB, free: 9.199 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.001601/0.4261, allocations: 0.736 MB / 0.553 GB, free: 8.613 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/0.4261, allocations: 10.16 kB / 0.553 GB, free: 8.613 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.554e-05/0.4261, allocations: 9.719 kB / 0.553 GB, free: 8.613 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.482e-05/0.4262, allocations: 79.94 kB / 0.5531 GB, free: 8.539 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001046/0.4263, allocations: 53.61 kB / 0.5531 GB, free: 8.512 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007952/0.4271, allocations: 393.4 kB / 0.5535 GB, free: 8.195 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.026e-05/0.4272, allocations: 24.03 kB / 0.5535 GB, free: 8.188 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.794e-05/0.4272, allocations: 36.94 kB / 0.5535 GB, free: 8.176 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007748/0.428, allocations: 462.5 kB / 0.554 GB, free: 7.848 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.242e-05/0.428, allocations: 5.281 kB / 0.554 GB, free: 7.844 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.147e-05/0.4281, allocations: 15.97 kB / 0.554 GB, free: 7.832 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.35e-05/0.4281, allocations: 10.03 kB / 0.554 GB, free: 7.832 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005603/0.4287, allocations: 308 kB / 0.5543 GB, free: 7.688 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002429/0.4311, allocations: 1.718 MB / 0.556 GB, free: 6.145 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002662/0.4313, allocations: 141.2 kB / 0.5561 GB, free: 6.027 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001078/0.4315, allocations: 59.66 kB / 0.5562 GB, free: 5.98 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.4315, allocations: 5.172 kB / 0.5562 GB, free: 5.977 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.325e-05/0.4315, allocations: 36.84 kB / 0.5562 GB, free: 5.934 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 3.527e-06/0.4315, allocations: 4 kB / 0.5562 GB, free: 5.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.001221/0.4328, allocations: 0.5466 MB / 0.5568 GB, free: 5.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.911e-05/0.4329, allocations: 105.7 kB / 0.5569 GB, free: 5.375 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004427/0.4333, allocations: 369.1 kB / 0.5572 GB, free: 5.145 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.855e-05/0.4333, allocations: 30.8 kB / 0.5572 GB, free: 5.109 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002346/0.4336, allocations: 284.3 kB / 0.5575 GB, free: 4.855 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.722e-05/0.4336, allocations: 62.98 kB / 0.5576 GB, free: 4.801 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001948/0.4338, allocations: 63.36 kB / 0.5576 GB, free: 4.754 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001888/0.434, allocations: 352.3 kB / 0.558 GB, free: 4.41 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.979e-05/0.4341, allocations: 46.08 kB / 0.558 GB, free: 4.391 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002519/0.4344, allocations: 194.8 kB / 0.5582 GB, free: 4.172 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003769/0.4347, allocations: 266 kB / 0.5584 GB, free: 3.914 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.277e-06/0.4347, allocations: 4.969 kB / 0.5584 GB, free: 3.91 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004671/0.4352, allocations: 303.8 kB / 0.5587 GB, free: 3.629 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.069e-05/0.4352, allocations: 8 kB / 0.5587 GB, free: 3.621 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.4352, allocations: 4 kB / 0.5588 GB, free: 3.617 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.407e-05/0.4353, allocations: 8 kB / 0.5588 GB, free: 3.609 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002622/0.4355, allocations: 63.91 kB / 0.5588 GB, free: 3.547 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.726e-05/0.4355, allocations: 11.94 kB / 0.5588 GB, free: 3.535 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001758/0.4357, allocations: 11.95 kB / 0.5588 GB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.491e-05/0.4357, allocations: 24.28 kB / 0.5589 GB, free: 3.5 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.0002337/0.436, allocations: 185.6 kB / 0.559 GB, free: 3.309 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.928e-05/0.4361, allocations: 35.77 kB / 0.5591 GB, free: 3.273 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003173/0.4364, allocations: 168.7 kB / 0.5592 GB, free: 3.102 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.4364, allocations: 4 kB / 0.5592 GB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.4364, allocations: 0 / 0.5592 GB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.4364, allocations: 3.984 kB / 0.5592 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007723/0.4372, allocations: 0.5098 MB / 0.5597 GB, free: 2.531 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.4372, allocations: 0 / 0.5597 GB, free: 2.531 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001847/0.4374, allocations: 31.98 kB / 0.5598 GB, free: 2.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.661e-06/0.4374, allocations: 4 kB / 0.5598 GB, free: 2.496 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.847e-05/0.4374, allocations: 4 kB / 0.5598 GB, free: 2.492 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.762e-06/0.4374, allocations: 7.938 kB / 0.5598 GB, free: 2.484 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.441e-06/0.4374, allocations: 4.375 kB / 0.5598 GB, free: 2.48 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005415/0.4379, allocations: 399.5 kB / 0.5602 GB, free: 2.07 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.555e-05/0.438, allocations: 35.72 kB / 0.5602 GB, free: 2.035 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.844e-05/0.438, allocations: 7.938 kB / 0.5602 GB, free: 2.027 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001591/0.4382, allocations: 8 kB / 0.5602 GB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.281e-05/0.4382, allocations: 16.02 kB / 0.5602 GB, free: 2.004 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.137e-05/0.4383, allocations: 4 kB / 0.5602 GB, free: 2 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002911/0.4386, allocations: 255.1 kB / 0.5605 GB, free: 1.754 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4386, allocations: 4 kB / 0.5605 GB, free: 1.75 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004343/0.439, allocations: 76 kB / 0.5606 GB, free: 1.676 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.0007963/0.4398, allocations: 0.9317 MB / 0.5615 GB, free: 0.707 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003038/0.4401, allocations: 143.7 kB / 0.5616 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.4401, allocations: 0 / 0.5616 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.745e-05/0.4402, allocations: 57.25 kB / 0.5617 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.0007278/0.4409, allocations: 95.78 kB / 0.5618 GB, free: 436 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004497/0.4454, allocations: 3.428 MB / 0.5651 GB, free: 12.77 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005672/0.446, allocations: 0.8347 MB / 0.5659 GB, free: 11.91 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001746/0.4462, allocations: 47.27 kB / 0.566 GB, free: 11.86 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002212/0.4464, allocations: 147.4 kB / 0.5661 GB, free: 11.72 MB / 414.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4464, allocations: 0 / 0.5661 GB, free: 11.72 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03447/0.4808, allocations: 7.408 MB / 0.5733 GB, free: 4.473 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.18, allocations: 7.922 kB / 0.5733 GB, free: 4.465 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: 15.144592933997046] Failed to read output from testmodel.py, exit status != 0: 12.342926666024141 12.360057908 11.931936866 Calling exit ...