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.001573/0.001573, 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.001792/0.001792, allocations: 213.7 kB / 23.74 MB, free: 4.688 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.543/1.543, allocations: 230.6 MB / 257.5 MB, free: 8.023 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.1896/0.1896, allocations: 38.53 MB / 352.5 MB, free: 12.66 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.002121/0.002121, allocations: 70.56 kB / 492.5 MB, free: 4.934 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3654/0.3675, allocations: 62.47 MB / 0.542 GB, free: 472 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.008379/0.3759, allocations: 5.613 MB / 0.5475 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002696/0.3786, allocations: 1.145 MB / 0.5486 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002898/0.3789, allocations: 27.41 kB / 0.5486 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002938/0.3792, allocations: 82.33 kB / 0.5487 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008294/0.38, allocations: 304.8 kB / 0.549 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003516/0.3804, allocations: 139.6 kB / 0.5491 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009536/0.3813, allocations: 0.6983 MB / 0.5498 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002844/0.3816, allocations: 125.8 kB / 0.5499 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006345/0.3823, allocations: 321.1 kB / 0.5502 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006809/0.3829, allocations: 342.8 kB / 0.5506 GB, free: 9.812 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.76e-05/0.383, allocations: 33.03 kB / 0.5506 GB, free: 9.812 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.249e-05/0.3831, allocations: 33.47 kB / 0.5506 GB, free: 9.812 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001994/0.3833, allocations: 167 kB / 0.5508 GB, free: 9.699 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002835/0.3836, allocations: 243.4 kB / 0.551 GB, free: 9.543 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006111/0.3842, allocations: 495.8 kB / 0.5515 GB, free: 9.215 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.3842, allocations: 1 kB / 0.5515 GB, free: 9.215 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3842, allocations: 0 / 0.5515 GB, free: 9.215 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.415e-05/0.3842, allocations: 0 / 0.5515 GB, free: 9.215 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.001459/0.3857, allocations: 0.7402 MB / 0.5522 GB, free: 8.625 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.3857, allocations: 9.562 kB / 0.5522 GB, free: 8.625 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.39e-05/0.3858, allocations: 75.09 kB / 0.5523 GB, free: 8.555 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.544e-05/0.3859, allocations: 54.33 kB / 0.5523 GB, free: 8.527 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000779/0.3867, allocations: 390.1 kB / 0.5527 GB, free: 8.219 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.508e-05/0.3867, allocations: 27.59 kB / 0.5527 GB, free: 8.203 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.793e-05/0.3868, allocations: 39.81 kB / 0.5528 GB, free: 8.188 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007136/0.3875, allocations: 459.4 kB / 0.5532 GB, free: 7.867 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.023e-05/0.3875, allocations: 4.656 kB / 0.5532 GB, free: 7.863 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.593e-05/0.3876, allocations: 21.28 kB / 0.5532 GB, free: 7.848 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.906e-05/0.3876, allocations: 8.562 kB / 0.5532 GB, free: 7.848 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005309/0.3881, allocations: 304 kB / 0.5535 GB, free: 7.707 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002283/0.3904, allocations: 1.719 MB / 0.5552 GB, free: 6.164 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002493/0.3906, allocations: 144.5 kB / 0.5553 GB, free: 6.043 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.157e-05/0.3907, allocations: 54.94 kB / 0.5554 GB, free: 6 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.26e-05/0.3908, allocations: 1.688 kB / 0.5554 GB, free: 6 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.854e-05/0.3908, allocations: 40.66 kB / 0.5554 GB, free: 5.953 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.493e-06/0.3908, allocations: 0 / 0.5554 GB, free: 5.953 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.001063/0.3919, allocations: 0.5476 MB / 0.556 GB, free: 5.523 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.1e-05/0.392, allocations: 105 kB / 0.5561 GB, free: 5.398 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004398/0.3924, allocations: 373 kB / 0.5564 GB, free: 5.164 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.216e-05/0.3924, allocations: 26.77 kB / 0.5565 GB, free: 5.133 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002247/0.3926, allocations: 280.2 kB / 0.5567 GB, free: 4.879 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.924e-05/0.3927, allocations: 63.25 kB / 0.5568 GB, free: 4.824 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.99e-05/0.3928, allocations: 67.83 kB / 0.5568 GB, free: 4.773 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001897/0.393, allocations: 350.9 kB / 0.5572 GB, free: 4.43 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.091e-05/0.3931, allocations: 42.83 kB / 0.5572 GB, free: 4.414 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002138/0.3933, allocations: 198.7 kB / 0.5574 GB, free: 4.191 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003374/0.3936, allocations: 273.5 kB / 0.5577 GB, free: 3.926 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3936, allocations: 1.344 kB / 0.5577 GB, free: 3.926 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004489/0.3941, allocations: 293.9 kB / 0.558 GB, free: 3.664 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.3941, allocations: 8 kB / 0.558 GB, free: 3.656 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.3941, allocations: 11.94 kB / 0.558 GB, free: 3.645 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.285e-05/0.3941, allocations: 7.984 kB / 0.558 GB, free: 3.637 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002687/0.3944, allocations: 71.92 kB / 0.5581 GB, free: 3.566 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.751e-05/0.3944, allocations: 11.92 kB / 0.5581 GB, free: 3.555 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001836/0.3946, allocations: 15.95 kB / 0.5581 GB, free: 3.539 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.308e-05/0.3946, allocations: 12 kB / 0.5581 GB, free: 3.527 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.0002249/0.3949, allocations: 185.6 kB / 0.5583 GB, free: 3.336 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.709e-05/0.3949, allocations: 39.8 kB / 0.5583 GB, free: 3.297 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000333/0.3953, allocations: 168.7 kB / 0.5585 GB, free: 3.125 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.3953, allocations: 0 / 0.5585 GB, free: 3.125 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.3953, allocations: 4 kB / 0.5585 GB, free: 3.121 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.3953, allocations: 3.984 kB / 0.5585 GB, free: 3.117 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007923/0.3961, allocations: 0.502 MB / 0.559 GB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.3961, allocations: 3.984 kB / 0.559 GB, free: 2.559 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001852/0.3963, allocations: 40.02 kB / 0.559 GB, free: 2.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.913e-06/0.3963, allocations: 4 kB / 0.559 GB, free: 2.516 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.3963, allocations: 0 / 0.559 GB, free: 2.516 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.3963, allocations: 4 kB / 0.559 GB, free: 2.512 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.167e-06/0.3963, allocations: 7.875 kB / 0.559 GB, free: 2.504 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005155/0.3968, allocations: 399.1 kB / 0.5594 GB, free: 2.094 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.626e-05/0.3969, allocations: 35.72 kB / 0.5594 GB, free: 2.059 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.253e-05/0.3969, allocations: 4 kB / 0.5594 GB, free: 2.055 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001646/0.3971, allocations: 11.94 kB / 0.5595 GB, free: 2.043 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.017e-05/0.3971, allocations: 12.02 kB / 0.5595 GB, free: 2.031 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.909e-06/0.3971, allocations: 4 kB / 0.5595 GB, free: 2.027 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002749/0.3974, allocations: 259.1 kB / 0.5597 GB, free: 1.781 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3974, allocations: 0 / 0.5597 GB, free: 1.781 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004446/0.3979, allocations: 68 kB / 0.5598 GB, free: 1.715 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.0007898/0.3986, allocations: 0.9321 MB / 0.5607 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003056/0.399, allocations: 147.9 kB / 0.5608 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.399, allocations: 7.938 kB / 0.5608 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001095/0.3991, allocations: 51.91 kB / 0.5609 GB, free: 0.543 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007056/0.3998, allocations: 104.3 kB / 0.561 GB, free: 456 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004415/0.4042, allocations: 3.413 MB / 0.5643 GB, free: 12.81 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005403/0.4047, allocations: 0.8425 MB / 0.5651 GB, free: 11.94 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001909/0.4049, allocations: 51.27 kB / 0.5652 GB, free: 11.89 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000191/0.4051, allocations: 147.4 kB / 0.5653 GB, free: 11.74 MB / 414.1 MB Notification: Performance of SimCode: time 1.342e-06/0.4051, allocations: 0 / 0.5653 GB, free: 11.74 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03989/0.445, allocations: 7.373 MB / 0.5725 GB, free: 4.523 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/12.03, allocations: 0 / 0.5725 GB, free: 4.523 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.937320154160261] Failed to read output from testmodel.py, exit status != 0: 12.139753249939531 12.159129024 11.770919532 Calling exit ...