Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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.001379/0.001379, allocations: 112.2 kB / 18.49 MB, free: 4.539 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.00145/0.00145, allocations: 218.9 kB / 21.46 MB, free: 1.586 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.609/1.609, allocations: 230.6 MB / 254.8 MB, free: 14.9 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1807/0.1807, allocations: 38.5 MB / 349.4 MB, free: 2.586 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/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_latest_PowerSystems_Examples_Introductory_Frequency",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Frequency,fileNamePrefix="PowerSystems_latest_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.002087/0.002087, allocations: 67.91 kB / 487.8 MB, free: 22.1 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1385, allocations: 62.42 MB / 0.5373 GB, free: 7.57 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.007687/0.1462, allocations: 5.496 MB / 0.5427 GB, free: 2.047 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00211/0.1483, allocations: 1.138 MB / 0.5438 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000251/0.1486, allocations: 23.75 kB / 0.5438 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002536/0.1488, allocations: 87.2 kB / 0.5439 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007908/0.1496, allocations: 306.3 kB / 0.5442 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003305/0.1499, allocations: 139.8 kB / 0.5444 GB, free: 368 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008459/0.1508, allocations: 0.6967 MB / 0.545 GB, free: 15.66 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002893/0.1511, allocations: 140.7 kB / 0.5452 GB, free: 15.52 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005766/0.1517, allocations: 330.6 kB / 0.5455 GB, free: 15.19 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005247/0.1522, allocations: 338.7 kB / 0.5458 GB, free: 14.86 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.026e-05/0.1522, allocations: 36 kB / 0.5458 GB, free: 14.82 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.516e-05/0.1523, allocations: 32 kB / 0.5459 GB, free: 14.79 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001823/0.1525, allocations: 159.5 kB / 0.546 GB, free: 14.64 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002489/0.1527, allocations: 246.7 kB / 0.5463 GB, free: 14.39 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005843/0.1533, allocations: 497.8 kB / 0.5467 GB, free: 13.91 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.1533, allocations: 0 / 0.5467 GB, free: 13.91 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1533, allocations: 0 / 0.5467 GB, free: 13.91 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.578e-06/0.1533, allocations: 0 / 0.5467 GB, free: 13.91 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.001468/0.1548, allocations: 0.8159 MB / 0.5475 GB, free: 13.04 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.1549, allocations: 8.031 kB / 0.5475 GB, free: 13.03 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.418e-05/0.1549, allocations: 9.188 kB / 0.5475 GB, free: 13.02 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.665e-05/0.155, allocations: 78.72 kB / 0.5476 GB, free: 12.93 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.295e-05/0.1551, allocations: 52.61 kB / 0.5477 GB, free: 12.88 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007381/0.1558, allocations: 472 kB / 0.5481 GB, free: 12.38 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.974e-05/0.1558, allocations: 29 kB / 0.5481 GB, free: 12.35 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.057e-05/0.1559, allocations: 36 kB / 0.5482 GB, free: 12.32 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007087/0.1566, allocations: 463.4 kB / 0.5486 GB, free: 11.82 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/0.1566, allocations: 0 / 0.5486 GB, free: 11.82 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.022e-05/0.1567, allocations: 16 kB / 0.5486 GB, free: 11.81 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.1567, allocations: 8 kB / 0.5486 GB, free: 11.8 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005123/0.1572, allocations: 308.6 kB / 0.5489 GB, free: 11.5 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002135/0.1593, allocations: 1.772 MB / 0.5507 GB, free: 9.617 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002393/0.1596, allocations: 135.7 kB / 0.5508 GB, free: 9.457 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.262e-05/0.1597, allocations: 58.66 kB / 0.5509 GB, free: 9.391 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.71e-05/0.1597, allocations: 4 kB / 0.5509 GB, free: 9.387 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.476e-05/0.1597, allocations: 34.56 kB / 0.5509 GB, free: 9.344 MB / 414.1 MB Notification: Performance of pre-optimization done (n=14): time 1.613e-06/0.1597, allocations: 4 kB / 0.5509 GB, free: 9.34 MB / 414.1 MB Notification: Performance of matching and sorting (n=15): time 0.00105/0.1608, allocations: 0.629 MB / 0.5515 GB, free: 8.656 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.263e-05/0.1608, allocations: 102.8 kB / 0.5516 GB, free: 8.531 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004277/0.1613, allocations: 377.5 kB / 0.552 GB, free: 8.156 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.1613, allocations: 25.7 kB / 0.552 GB, free: 8.125 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002156/0.1615, allocations: 284.2 kB / 0.5523 GB, free: 7.844 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.656e-05/0.1616, allocations: 67.41 kB / 0.5523 GB, free: 7.777 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.013e-05/0.1616, allocations: 61.66 kB / 0.5524 GB, free: 7.711 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.1618, allocations: 350.7 kB / 0.5527 GB, free: 7.359 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.588e-05/0.1619, allocations: 51.97 kB / 0.5528 GB, free: 7.309 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002072/0.1621, allocations: 190.6 kB / 0.553 GB, free: 7.055 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003369/0.1625, allocations: 258.6 kB / 0.5532 GB, free: 6.734 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.1625, allocations: 4 kB / 0.5532 GB, free: 6.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004687/0.1629, allocations: 297.6 kB / 0.5535 GB, free: 6.434 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.163, allocations: 8 kB / 0.5535 GB, free: 6.426 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.163, allocations: 4 kB / 0.5535 GB, free: 6.422 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.45e-05/0.163, allocations: 8 kB / 0.5535 GB, free: 6.414 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002731/0.1633, allocations: 67.84 kB / 0.5536 GB, free: 6.348 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.765e-05/0.1633, allocations: 15.92 kB / 0.5536 GB, free: 6.332 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001859/0.1635, allocations: 20.33 kB / 0.5536 GB, free: 6.312 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.221e-05/0.1635, allocations: 20 kB / 0.5536 GB, free: 6.293 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.0001997/0.1637, allocations: 182.3 kB / 0.5538 GB, free: 6.105 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.516e-05/0.1638, allocations: 35.77 kB / 0.5538 GB, free: 6.07 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003067/0.1641, allocations: 164.8 kB / 0.554 GB, free: 5.898 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.1641, allocations: 4 kB / 0.554 GB, free: 5.895 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.1641, allocations: 0 / 0.554 GB, free: 5.895 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.1641, allocations: 3.984 kB / 0.554 GB, free: 5.891 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007178/0.1648, allocations: 0.5342 MB / 0.5545 GB, free: 5.297 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.1648, allocations: 0 / 0.5545 GB, free: 5.297 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001915/0.165, allocations: 35.92 kB / 0.5546 GB, free: 5.262 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.125e-06/0.165, allocations: 7.984 kB / 0.5546 GB, free: 5.254 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.165, allocations: 4 kB / 0.5546 GB, free: 5.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.031e-06/0.165, allocations: 7.938 kB / 0.5546 GB, free: 5.242 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.165, allocations: 0 / 0.5546 GB, free: 5.242 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004596/0.1655, allocations: 404.1 kB / 0.555 GB, free: 4.824 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.458e-05/0.1656, allocations: 112.8 kB / 0.5551 GB, free: 4.695 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.175e-05/0.1656, allocations: 7.938 kB / 0.5551 GB, free: 4.688 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000171/0.1658, allocations: 4.531 kB / 0.5551 GB, free: 4.684 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.86e-05/0.1658, allocations: 15.97 kB / 0.5551 GB, free: 4.668 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.05e-05/0.1658, allocations: 4 kB / 0.5551 GB, free: 4.664 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002744/0.1661, allocations: 255.2 kB / 0.5553 GB, free: 4.414 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1661, allocations: 0 / 0.5553 GB, free: 4.414 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004296/0.1665, allocations: 76 kB / 0.5554 GB, free: 4.34 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.0007996/0.1673, allocations: 0.9384 MB / 0.5563 GB, free: 3.371 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002895/0.1676, allocations: 139.7 kB / 0.5565 GB, free: 3.234 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1676, allocations: 1.25 kB / 0.5565 GB, free: 3.234 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 9.357e-05/0.1677, allocations: 55.86 kB / 0.5565 GB, free: 3.18 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006856/0.1684, allocations: 92.91 kB / 0.5566 GB, free: 3.094 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00436/0.1728, allocations: 3.427 MB / 0.56 GB, free: 15.45 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005194/0.1733, allocations: 0.8387 MB / 0.5608 GB, free: 14.58 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000174/0.1735, allocations: 47.25 kB / 0.5608 GB, free: 14.53 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002065/0.1737, allocations: 155.4 kB / 0.561 GB, free: 14.38 MB / 430.1 MB Notification: Performance of SimCode: time 8.51e-07/0.1737, allocations: 0 / 0.561 GB, free: 14.38 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02931/0.203, allocations: 7.137 MB / 0.5679 GB, free: 7.387 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.842/9.045, allocations: 8 kB / 0.5679 GB, free: 7.379 MB / 430.1 MB " [Timeout remaining time 651] (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.14855699596228] Failed to read output from testmodel.py, exit status != 0: 9.180622388958 9.207782736 9.049103025 Calling exit ...