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.001714/0.001714, allocations: 121 kB / 18.5 MB, free: 4.562 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.00208/0.00208, allocations: 213.5 kB / 21.45 MB, free: 1.617 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.604/1.604, allocations: 230.6 MB / 254.8 MB, free: 15.24 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.5 MB / 349.4 MB, free: 2.617 MB / 270.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.002753/0.002753, allocations: 68.94 kB / 487.8 MB, free: 32.46 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1501/0.1528, allocations: 62.42 MB / 0.5373 GB, free: 9.652 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.008805/0.1616, allocations: 5.498 MB / 0.5427 GB, free: 4.129 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002611/0.1643, allocations: 1.138 MB / 0.5438 GB, free: 2.988 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00054/0.1648, allocations: 23.75 kB / 0.5438 GB, free: 2.965 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003883/0.1652, allocations: 83.2 kB / 0.5439 GB, free: 2.883 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001144/0.1663, allocations: 310.3 kB / 0.5442 GB, free: 2.578 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004375/0.1668, allocations: 139.8 kB / 0.5444 GB, free: 2.441 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001068/0.1678, allocations: 0.6967 MB / 0.545 GB, free: 1.742 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000387/0.1682, allocations: 140.7 kB / 0.5452 GB, free: 1.598 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007477/0.169, allocations: 330.6 kB / 0.5455 GB, free: 1.273 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007156/0.1697, allocations: 338.7 kB / 0.5458 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.723e-05/0.1698, allocations: 32 kB / 0.5458 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001275/0.1699, allocations: 32 kB / 0.5459 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002216/0.1701, allocations: 159.5 kB / 0.546 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004332/0.1706, allocations: 238.8 kB / 0.5462 GB, free: 500 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007898/0.1714, allocations: 0.49 MB / 0.5467 GB, free: 15.99 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.1714, allocations: 0 / 0.5467 GB, free: 15.99 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.1714, allocations: 4 kB / 0.5467 GB, free: 15.99 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.513e-05/0.1714, allocations: 0 / 0.5467 GB, free: 15.99 MB / 414.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.00189/0.1733, allocations: 0.808 MB / 0.5475 GB, free: 15.13 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/0.1733, allocations: 12.03 kB / 0.5475 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.91e-05/0.1734, allocations: 9.188 kB / 0.5475 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001192/0.1735, allocations: 82.7 kB / 0.5476 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001573/0.1736, allocations: 52.61 kB / 0.5477 GB, free: 14.97 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009881/0.1746, allocations: 468.1 kB / 0.5481 GB, free: 14.47 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.666e-05/0.1747, allocations: 32.94 kB / 0.5481 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.143e-05/0.1747, allocations: 40 kB / 0.5482 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009123/0.1756, allocations: 459.4 kB / 0.5486 GB, free: 13.91 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.235e-05/0.1757, allocations: 0 / 0.5486 GB, free: 13.91 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.618e-05/0.1757, allocations: 20 kB / 0.5486 GB, free: 13.89 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.665e-05/0.1757, allocations: 12 kB / 0.5487 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006233/0.1764, allocations: 308.6 kB / 0.5489 GB, free: 13.58 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002563/0.1789, allocations: 1.764 MB / 0.5507 GB, free: 11.71 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002667/0.1792, allocations: 135.6 kB / 0.5508 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001134/0.1793, allocations: 66.61 kB / 0.5509 GB, free: 11.47 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.98e-05/0.1793, allocations: 0 / 0.5509 GB, free: 11.47 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.463e-05/0.1794, allocations: 38.55 kB / 0.5509 GB, free: 11.43 MB / 414.1 MB Notification: Performance of pre-optimization done (n=14): time 2.054e-06/0.1794, allocations: 4 kB / 0.5509 GB, free: 11.42 MB / 414.1 MB Notification: Performance of matching and sorting (n=15): time 0.001288/0.1807, allocations: 0.6212 MB / 0.5515 GB, free: 10.75 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.384e-05/0.1807, allocations: 106.8 kB / 0.5516 GB, free: 10.62 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004516/0.1812, allocations: 373.6 kB / 0.552 GB, free: 10.25 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.446e-05/0.1812, allocations: 25.7 kB / 0.552 GB, free: 10.21 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002383/0.1815, allocations: 280 kB / 0.5523 GB, free: 9.938 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.018e-05/0.1815, allocations: 63.47 kB / 0.5523 GB, free: 9.875 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.1816, allocations: 61.66 kB / 0.5524 GB, free: 9.809 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001906/0.1818, allocations: 354.8 kB / 0.5527 GB, free: 9.453 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.1819, allocations: 55.91 kB / 0.5528 GB, free: 9.398 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000246/0.1822, allocations: 190.6 kB / 0.553 GB, free: 9.145 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003593/0.1825, allocations: 259 kB / 0.5532 GB, free: 8.824 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.1825, allocations: 4.438 kB / 0.5532 GB, free: 8.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005104/0.1831, allocations: 297.5 kB / 0.5535 GB, free: 8.523 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.1831, allocations: 8 kB / 0.5535 GB, free: 8.516 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.1831, allocations: 4 kB / 0.5535 GB, free: 8.512 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.347e-05/0.1831, allocations: 8 kB / 0.5535 GB, free: 8.504 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002828/0.1834, allocations: 71.84 kB / 0.5536 GB, free: 8.434 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.948e-05/0.1834, allocations: 15.92 kB / 0.5536 GB, free: 8.418 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001833/0.1836, allocations: 15.95 kB / 0.5536 GB, free: 8.402 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.695e-05/0.1836, allocations: 16 kB / 0.5536 GB, free: 8.387 MB / 414.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.0002307/0.1839, allocations: 185.6 kB / 0.5538 GB, free: 8.195 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.789e-05/0.1839, allocations: 39.8 kB / 0.5538 GB, free: 8.156 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003391/0.1843, allocations: 164.8 kB / 0.554 GB, free: 7.98 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.1843, allocations: 4 kB / 0.554 GB, free: 7.977 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.1843, allocations: 0 / 0.554 GB, free: 7.977 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.1843, allocations: 0 / 0.554 GB, free: 7.977 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007717/0.1851, allocations: 0.5303 MB / 0.5545 GB, free: 7.387 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.1851, allocations: 0 / 0.5545 GB, free: 7.387 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001901/0.1853, allocations: 39.95 kB / 0.5546 GB, free: 7.348 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.092e-06/0.1853, allocations: 4 kB / 0.5546 GB, free: 7.344 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.765e-05/0.1853, allocations: 7.984 kB / 0.5546 GB, free: 7.336 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/0.1853, allocations: 8.031 kB / 0.5546 GB, free: 7.328 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1853, allocations: 3.938 kB / 0.5546 GB, free: 7.324 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004764/0.1858, allocations: 400.1 kB / 0.555 GB, free: 6.91 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001292/0.1859, allocations: 116.9 kB / 0.5551 GB, free: 6.777 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.602e-05/0.186, allocations: 7.938 kB / 0.5551 GB, free: 6.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001611/0.1861, allocations: 4 kB / 0.5551 GB, free: 6.766 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.565e-05/0.1862, allocations: 15.97 kB / 0.5551 GB, free: 6.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.098e-05/0.1862, allocations: 4 kB / 0.5551 GB, free: 6.746 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002845/0.1865, allocations: 251.2 kB / 0.5553 GB, free: 6.5 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1865, allocations: 4 kB / 0.5553 GB, free: 6.496 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004286/0.1869, allocations: 72 kB / 0.5554 GB, free: 6.426 MB / 414.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.0008746/0.1878, allocations: 0.9329 MB / 0.5563 GB, free: 5.465 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003186/0.1881, allocations: 147.7 kB / 0.5565 GB, free: 5.32 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1881, allocations: 0 / 0.5565 GB, free: 5.32 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 9.727e-05/0.1882, allocations: 55.86 kB / 0.5565 GB, free: 5.266 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007363/0.1889, allocations: 110.2 kB / 0.5566 GB, free: 5.168 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004527/0.1934, allocations: 3.415 MB / 0.56 GB, free: 1.531 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005915/0.194, allocations: 0.8386 MB / 0.5608 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001847/0.1942, allocations: 51.25 kB / 0.5608 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002192/0.1944, allocations: 155.4 kB / 0.561 GB, free: 472 kB / 414.1 MB Notification: Performance of SimCode: time 1.123e-06/0.1944, allocations: 0 / 0.561 GB, free: 472 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02999/0.2244, allocations: 7.116 MB / 0.5679 GB, free: 9.465 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.927/9.151, allocations: 11.5 kB / 0.5679 GB, free: 9.457 MB / 430.1 MB " [Timeout remaining time 651] (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 os._exit(0), Time elapsed: 12.232721317966934] Failed to read output from testmodel.py, exit status != 0: 9.28465942404 9.298877522 9.124363031 Calling exit ...