Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.Units.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.001318/0.001318, 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.001562/0.001562, 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.586/1.586, allocations: 230.6 MB / 258.3 MB, free: 7.996 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.2035/0.2035, allocations: 38.53 MB / 353.2 MB, free: 12.52 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.Units,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Units",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Units,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Units",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.002025/0.002025, allocations: 64.08 kB / 493.3 MB, free: 4.883 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3579/0.3599, allocations: 62.47 MB / 0.5428 GB, free: 436 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.008606/0.3685, allocations: 6.271 MB / 0.5489 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003906/0.3724, allocations: 2.026 MB / 0.5509 GB, free: 9.871 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003538/0.3728, allocations: 30.25 kB / 0.5509 GB, free: 9.855 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001913/0.3747, allocations: 0.715 MB / 0.5516 GB, free: 9.305 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001026/0.3757, allocations: 387.2 kB / 0.552 GB, free: 8.992 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001191/0.3769, allocations: 408 kB / 0.5523 GB, free: 8.707 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001223/0.3781, allocations: 0.937 MB / 0.5533 GB, free: 8.191 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006475/0.3788, allocations: 401 kB / 0.5536 GB, free: 7.93 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007409/0.3795, allocations: 451.5 kB / 0.5541 GB, free: 7.676 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008254/0.3803, allocations: 0.5687 MB / 0.5546 GB, free: 7.336 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.612e-05/0.3804, allocations: 57.25 kB / 0.5547 GB, free: 7.336 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005875/0.381, allocations: 269 kB / 0.5549 GB, free: 7.215 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004503/0.3815, allocations: 422.4 kB / 0.5553 GB, free: 6.961 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004697/0.3819, allocations: 427.7 kB / 0.5557 GB, free: 6.688 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001325/0.3833, allocations: 1.028 MB / 0.5567 GB, free: 6.02 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.3833, allocations: 4 kB / 0.5568 GB, free: 6.016 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3833, allocations: 1.156 kB / 0.5568 GB, free: 6.016 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.883e-05/0.3833, allocations: 7.875 kB / 0.5568 GB, free: 6.008 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: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.00209/0.3854, allocations: 1.014 MB / 0.5578 GB, free: 5.082 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.3854, allocations: 19.98 kB / 0.5578 GB, free: 5.062 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.844e-05/0.3855, allocations: 18.19 kB / 0.5578 GB, free: 5.043 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001692/0.3856, allocations: 131.3 kB / 0.5579 GB, free: 4.906 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001099/0.3867, allocations: 220.2 kB / 0.5581 GB, free: 4.691 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001028/0.3878, allocations: 490.1 kB / 0.5586 GB, free: 4.188 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.268e-05/0.3878, allocations: 66.11 kB / 0.5587 GB, free: 4.121 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001293/0.388, allocations: 72 kB / 0.5587 GB, free: 4.051 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001738/0.3897, allocations: 1.13 MB / 0.5598 GB, free: 2.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.288e-05/0.3897, allocations: 3.938 kB / 0.5598 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.036e-05/0.3898, allocations: 36 kB / 0.5599 GB, free: 2.781 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.179e-05/0.3899, allocations: 49.98 kB / 0.5599 GB, free: 2.73 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001472/0.3914, allocations: 0.8662 MB / 0.5608 GB, free: 1.863 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00623/0.3976, allocations: 4.975 MB / 0.5656 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007463/0.3983, allocations: 392.8 kB / 0.566 GB, free: 12.26 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003852/0.3987, allocations: 193.7 kB / 0.5662 GB, free: 12.06 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.59e-05/0.3988, allocations: 11.98 kB / 0.5662 GB, free: 12.05 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.764e-05/0.3988, allocations: 46.5 kB / 0.5662 GB, free: 12 MB / 414.1 MB Notification: Performance of pre-optimization done (n=43): time 3.336e-06/0.3988, allocations: 0 / 0.5662 GB, free: 12 MB / 414.1 MB Notification: Performance of matching and sorting (n=44): time 0.002305/0.4011, allocations: 1.085 MB / 0.5673 GB, free: 10.9 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.801e-05/0.4012, allocations: 85.11 kB / 0.5674 GB, free: 10.8 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005926/0.4018, allocations: 0.4901 MB / 0.5679 GB, free: 10.3 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.27e-05/0.4018, allocations: 33.7 kB / 0.5679 GB, free: 10.26 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003527/0.4022, allocations: 463.3 kB / 0.5683 GB, free: 9.805 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001474/0.4023, allocations: 166.8 kB / 0.5685 GB, free: 9.641 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002054/0.4026, allocations: 158.6 kB / 0.5686 GB, free: 9.48 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.4027, allocations: 366.7 kB / 0.569 GB, free: 9.113 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000377/0.4031, allocations: 241.8 kB / 0.5692 GB, free: 8.875 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000691/0.4038, allocations: 0.6207 MB / 0.5698 GB, free: 8.07 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001461/0.4053, allocations: 0.9377 MB / 0.5707 GB, free: 6.949 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.424e-06/0.4053, allocations: 4 kB / 0.5707 GB, free: 6.945 MB / 414.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001787/0.4071, allocations: 0.8961 MB / 0.5716 GB, free: 6.043 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.576e-05/0.4071, allocations: 12 kB / 0.5716 GB, free: 6.031 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.14e-05/0.4071, allocations: 12 kB / 0.5716 GB, free: 6.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.207e-05/0.4072, allocations: 20 kB / 0.5717 GB, free: 6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008225/0.408, allocations: 219.6 kB / 0.5719 GB, free: 5.785 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.849e-05/0.408, allocations: 28.34 kB / 0.5719 GB, free: 5.758 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005652/0.4086, allocations: 59.91 kB / 0.572 GB, free: 5.699 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.582e-05/0.4087, allocations: 44 kB / 0.572 GB, free: 5.656 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (99): * Single equations (assignments): 99 * 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.0005798/0.4092, allocations: 305.6 kB / 0.5723 GB, free: 5.348 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001116/0.4093, allocations: 63.59 kB / 0.5723 GB, free: 5.285 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001082/0.4104, allocations: 0.5601 MB / 0.5729 GB, free: 4.715 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/0.4104, allocations: 4 kB / 0.5729 GB, free: 4.711 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.435e-06/0.4104, allocations: 8 kB / 0.5729 GB, free: 4.703 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.4105, allocations: 0 / 0.5729 GB, free: 4.703 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00237/0.4128, allocations: 1.297 MB / 0.5742 GB, free: 3.332 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.4128, allocations: 0 / 0.5742 GB, free: 3.332 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004482/0.4133, allocations: 115.8 kB / 0.5743 GB, free: 3.219 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.136e-05/0.4133, allocations: 4 kB / 0.5743 GB, free: 3.215 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.503e-05/0.4134, allocations: 19.98 kB / 0.5743 GB, free: 3.195 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.703e-06/0.4134, allocations: 4 kB / 0.5743 GB, free: 3.191 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/0.4134, allocations: 4 kB / 0.5743 GB, free: 3.188 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009941/0.4144, allocations: 0.65 MB / 0.5749 GB, free: 2.496 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001882/0.4145, allocations: 55.56 kB / 0.575 GB, free: 2.441 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.062e-05/0.4146, allocations: 16 kB / 0.575 GB, free: 2.426 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002796/0.4149, allocations: 19.97 kB / 0.575 GB, free: 2.406 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.141e-05/0.415, allocations: 39.66 kB / 0.5751 GB, free: 2.367 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-05/0.415, allocations: 16 kB / 0.5751 GB, free: 2.352 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000507/0.4155, allocations: 330.8 kB / 0.5754 GB, free: 2.031 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4155, allocations: 8 kB / 0.5754 GB, free: 2.023 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001023/0.4166, allocations: 159.9 kB / 0.5756 GB, free: 1.867 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 simulation (51): * Single equations (assignments): 50 * 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.001319/0.4179, allocations: 1.199 MB / 0.5767 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00104/0.4189, allocations: 0.5795 MB / 0.5773 GB, free: 36 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.4189, allocations: 320 / 0.5773 GB, free: 36 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003573/0.4193, allocations: 227.3 kB / 0.5775 GB, free: 15.81 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007512/0.42, allocations: 112.8 kB / 0.5776 GB, free: 15.71 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008372/0.4284, allocations: 5.804 MB / 0.5833 GB, free: 9.398 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007888/0.4292, allocations: 0.9996 MB / 0.5843 GB, free: 8.371 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005889/0.4298, allocations: 229 kB / 0.5845 GB, free: 8.145 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003992/0.4302, allocations: 255.3 kB / 0.5847 GB, free: 7.895 MB / 430.1 MB Notification: Performance of SimCode: time 1.243e-06/0.4302, allocations: 4 kB / 0.5847 GB, free: 7.891 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03813/0.4683, allocations: 12.27 MB / 0.5967 GB, free: 11.78 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.34/12.81, allocations: 3.516 kB / 0.5967 GB, free: 11.78 MB / 446.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_PowerSystems.Examples.Introductory.Units.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.Units.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.Units.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.Units.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_Units_fmu --startTime=0 --stopTime=0.1 --stepSize=4e-05 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_Units.fmu > PowerSystems_PowerSystems.Examples.Introductory.Units.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.855740607017651] Failed to read output from testmodel.py, exit status != 0: 12.98585183697287 13.0070805 12.620486392 Calling exit ...