Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.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.001374/0.001374, 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.001679/0.001679, 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.569/1.569, allocations: 230.6 MB / 257.5 MB, free: 8.027 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.1887/0.1887, allocations: 38.53 MB / 352.5 MB, free: 12.54 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.ReferenceInertial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial",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.00203/0.00203, allocations: 59.91 kB / 492.5 MB, free: 4.914 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3723/0.3743, allocations: 62.47 MB / 0.542 GB, free: 460 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.006358/0.3807, allocations: 4.57 MB / 0.5464 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00269/0.3834, allocations: 1.501 MB / 0.5479 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002555/0.3836, allocations: 20.88 kB / 0.5479 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001149/0.3848, allocations: 394.1 kB / 0.5483 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006003/0.3854, allocations: 221.3 kB / 0.5485 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007917/0.3861, allocations: 254.1 kB / 0.5488 GB, free: 11 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007834/0.3869, allocations: 0.5342 MB / 0.5493 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004321/0.3874, allocations: 222.8 kB / 0.5495 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004834/0.3878, allocations: 262.2 kB / 0.5497 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005034/0.3883, allocations: 316.6 kB / 0.5501 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.852e-05/0.3884, allocations: 31.09 kB / 0.5501 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003383/0.3887, allocations: 154.6 kB / 0.5502 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002345/0.389, allocations: 236.4 kB / 0.5505 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002666/0.3892, allocations: 232.3 kB / 0.5507 GB, free: 9.871 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007191/0.39, allocations: 0.5746 MB / 0.5512 GB, free: 9.496 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.39, allocations: 4 kB / 0.5512 GB, free: 9.492 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.39, allocations: 0.9688 kB / 0.5512 GB, free: 9.492 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.406e-05/0.39, allocations: 0 / 0.5512 GB, free: 9.492 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001775/0.3918, allocations: 0.6721 MB / 0.5519 GB, free: 8.945 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.247e-05/0.3918, allocations: 12.67 kB / 0.5519 GB, free: 8.941 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001243/0.3919, allocations: 83.52 kB / 0.552 GB, free: 8.867 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009391/0.3929, allocations: 122.8 kB / 0.5521 GB, free: 8.809 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008653/0.3938, allocations: 341.3 kB / 0.5524 GB, free: 8.539 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.136e-05/0.3938, allocations: 37.45 kB / 0.5525 GB, free: 8.52 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001547/0.3939, allocations: 49.2 kB / 0.5525 GB, free: 8.5 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001021/0.395, allocations: 0.6235 MB / 0.5531 GB, free: 8.039 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.541e-05/0.395, allocations: 8.984 kB / 0.5531 GB, free: 8.031 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.682e-05/0.395, allocations: 25.41 kB / 0.5532 GB, free: 8.012 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001219/0.3952, allocations: 29.39 kB / 0.5532 GB, free: 8.008 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008125/0.396, allocations: 480.1 kB / 0.5536 GB, free: 7.785 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003651/0.3996, allocations: 2.824 MB / 0.5564 GB, free: 5.309 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004216/0.4, allocations: 212 kB / 0.5566 GB, free: 5.184 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002318/0.4003, allocations: 133.5 kB / 0.5567 GB, free: 5.113 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.415e-05/0.4003, allocations: 3.875 kB / 0.5567 GB, free: 5.113 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.895e-05/0.4004, allocations: 48.39 kB / 0.5568 GB, free: 5.059 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 2.485e-06/0.4004, allocations: 0 / 0.5568 GB, free: 5.059 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.001795/0.4022, allocations: 0.9023 MB / 0.5577 GB, free: 4.133 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.193e-05/0.4022, allocations: 81.11 kB / 0.5577 GB, free: 4.035 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003815/0.4026, allocations: 328.3 kB / 0.5581 GB, free: 3.707 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.891e-05/0.4026, allocations: 33.83 kB / 0.5581 GB, free: 3.668 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00022/0.4029, allocations: 288 kB / 0.5584 GB, free: 3.383 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001074/0.403, allocations: 99.12 kB / 0.5585 GB, free: 3.285 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001379/0.4031, allocations: 98.08 kB / 0.5585 GB, free: 3.184 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001861/0.4033, allocations: 350.7 kB / 0.5589 GB, free: 2.832 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002438/0.4035, allocations: 144.9 kB / 0.559 GB, free: 2.688 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004073/0.4039, allocations: 338.7 kB / 0.5593 GB, free: 2.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007007/0.4046, allocations: 0.5168 MB / 0.5598 GB, free: 1.66 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.4046, allocations: 4 kB / 0.5598 GB, free: 1.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.000853/0.4055, allocations: 0.5325 MB / 0.5604 GB, free: 1.117 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.4055, allocations: 8 kB / 0.5604 GB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.4055, allocations: 8 kB / 0.5604 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.432e-05/0.4055, allocations: 12 kB / 0.5604 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004486/0.406, allocations: 119.8 kB / 0.5605 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.639e-05/0.406, allocations: 11.94 kB / 0.5605 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000256/0.4063, allocations: 28.39 kB / 0.5605 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.031e-05/0.4063, allocations: 24 kB / 0.5606 GB, free: 0.9102 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (58): * Single equations (assignments): 58 * 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.0003056/0.4066, allocations: 221.7 kB / 0.5608 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.126e-05/0.4067, allocations: 35.75 kB / 0.5608 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000653/0.4073, allocations: 366.1 kB / 0.5612 GB, free: 288 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.4073, allocations: 4 kB / 0.5612 GB, free: 284 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.4073, allocations: 0 / 0.5612 GB, free: 284 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.4073, allocations: 7.984 kB / 0.5612 GB, free: 276 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001546/0.4089, allocations: 0.8515 MB / 0.562 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.4089, allocations: 4 kB / 0.562 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003205/0.4092, allocations: 63.91 kB / 0.5621 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.933e-06/0.4092, allocations: 4 kB / 0.5621 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.182e-05/0.4093, allocations: 15.92 kB / 0.5621 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.4093, allocations: 0 / 0.5621 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.4093, allocations: 4.094 kB / 0.5621 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008756/0.4101, allocations: 0.582 MB / 0.5627 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.476e-05/0.4102, allocations: 31.8 kB / 0.5627 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.333e-05/0.4103, allocations: 15.94 kB / 0.5627 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001831/0.4105, allocations: 15.98 kB / 0.5627 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.229e-05/0.4105, allocations: 19.97 kB / 0.5627 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.191e-05/0.4105, allocations: 8 kB / 0.5628 GB, free: 14.57 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002511/0.4108, allocations: 223 kB / 0.563 GB, free: 14.35 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4108, allocations: 0 / 0.563 GB, free: 14.35 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005027/0.4113, allocations: 96 kB / 0.5631 GB, free: 14.26 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (31): * Single equations (assignments): 30 * 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.001178/0.4125, allocations: 1.138 MB / 0.5642 GB, free: 13.08 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006629/0.4131, allocations: 351.9 kB / 0.5645 GB, free: 12.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.4131, allocations: 0 / 0.5645 GB, free: 12.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000242/0.4134, allocations: 138.4 kB / 0.5646 GB, free: 12.6 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005322/0.4139, allocations: 63.81 kB / 0.5647 GB, free: 12.54 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005635/0.4196, allocations: 3.993 MB / 0.5686 GB, free: 8.262 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005727/0.4201, allocations: 0.8581 MB / 0.5694 GB, free: 7.375 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003519/0.4205, allocations: 139.1 kB / 0.5696 GB, free: 7.238 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002243/0.4207, allocations: 139.4 kB / 0.5697 GB, free: 7.105 MB / 414.1 MB Notification: Performance of SimCode: time 7.61e-07/0.4207, allocations: 0 / 0.5697 GB, free: 7.105 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03866/0.4594, allocations: 7.607 MB / 0.5771 GB, free: 15.63 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/11.99, allocations: 7.875 kB / 0.5771 GB, free: 15.62 MB / 430.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial_fmu --startTime=0 --stopTime=0.1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial.fmu > PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.901601545047015] Failed to read output from testmodel.py, exit status != 0: 12.10442566499114 12.133732509 11.738037707 Calling exit ...