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.001382/0.001382, allocations: 115.6 kB / 20.43 MB, free: 1.449 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.001494/0.001494, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.464/1.464, allocations: 230.6 MB / 257.5 MB, free: 8.035 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.1892/0.1892, allocations: 38.53 MB / 352.4 MB, free: 12.58 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.002059/0.002059, allocations: 63.91 kB / 492.5 MB, free: 4.934 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3039/0.3059, allocations: 62.47 MB / 0.542 GB, free: 472 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.006694/0.3126, allocations: 4.579 MB / 0.5465 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003125/0.3157, allocations: 1.485 MB / 0.5479 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003086/0.3161, allocations: 24.84 kB / 0.5479 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0013/0.3174, allocations: 402 kB / 0.5483 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007206/0.3181, allocations: 217.3 kB / 0.5485 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008652/0.3189, allocations: 257.3 kB / 0.5488 GB, free: 11.01 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008358/0.3198, allocations: 0.5347 MB / 0.5493 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004497/0.3202, allocations: 227.6 kB / 0.5495 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005249/0.3208, allocations: 253.6 kB / 0.5497 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005045/0.3213, allocations: 316.9 kB / 0.55 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.859e-05/0.3213, allocations: 31.12 kB / 0.5501 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003549/0.3217, allocations: 161 kB / 0.5502 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002519/0.3219, allocations: 233.8 kB / 0.5505 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002785/0.3222, allocations: 227.8 kB / 0.5507 GB, free: 9.887 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008097/0.323, allocations: 0.5787 MB / 0.5512 GB, free: 9.508 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.323, allocations: 0 / 0.5512 GB, free: 9.508 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.323, allocations: 1.594 kB / 0.5512 GB, free: 9.508 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.211e-05/0.323, allocations: 0 / 0.5512 GB, free: 9.508 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.001391/0.3244, allocations: 0.6794 MB / 0.5519 GB, free: 8.953 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.3245, allocations: 13.73 kB / 0.5519 GB, free: 8.949 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001144/0.3246, allocations: 78.97 kB / 0.552 GB, free: 8.879 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007241/0.3253, allocations: 122.3 kB / 0.5521 GB, free: 8.82 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000769/0.3261, allocations: 341.4 kB / 0.5524 GB, free: 8.551 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.883e-05/0.3261, allocations: 37.03 kB / 0.5525 GB, free: 8.531 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001264/0.3262, allocations: 46.34 kB / 0.5525 GB, free: 8.516 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001094/0.3273, allocations: 0.6297 MB / 0.5531 GB, free: 8.047 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.876e-05/0.3274, allocations: 10.33 kB / 0.5531 GB, free: 8.039 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.741e-05/0.3274, allocations: 16.59 kB / 0.5532 GB, free: 8.027 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001274/0.3275, allocations: 29.58 kB / 0.5532 GB, free: 8.023 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008419/0.3284, allocations: 487.6 kB / 0.5536 GB, free: 7.793 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003954/0.3323, allocations: 2.821 MB / 0.5564 GB, free: 5.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000404/0.3327, allocations: 211.8 kB / 0.5566 GB, free: 5.195 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002297/0.333, allocations: 137.9 kB / 0.5567 GB, free: 5.121 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.901e-05/0.333, allocations: 11.27 kB / 0.5567 GB, free: 5.113 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.772e-05/0.333, allocations: 36.84 kB / 0.5568 GB, free: 5.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 2.134e-06/0.333, allocations: 0 / 0.5568 GB, free: 5.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.001838/0.3349, allocations: 0.9052 MB / 0.5577 GB, free: 4.156 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.158e-05/0.3349, allocations: 85.05 kB / 0.5577 GB, free: 4.055 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004369/0.3354, allocations: 324.4 kB / 0.5581 GB, free: 3.73 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.54e-05/0.3354, allocations: 33.7 kB / 0.5581 GB, free: 3.691 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002059/0.3356, allocations: 280 kB / 0.5584 GB, free: 3.414 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.883e-05/0.3357, allocations: 111.1 kB / 0.5585 GB, free: 3.305 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001365/0.3359, allocations: 86.16 kB / 0.5585 GB, free: 3.215 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.336, allocations: 354.7 kB / 0.5589 GB, free: 2.859 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002434/0.3363, allocations: 144.9 kB / 0.559 GB, free: 2.715 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003881/0.3367, allocations: 342.6 kB / 0.5593 GB, free: 2.293 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006815/0.3373, allocations: 0.513 MB / 0.5598 GB, free: 1.688 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.3373, allocations: 0 / 0.5598 GB, free: 1.688 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0008743/0.3382, allocations: 0.536 MB / 0.5604 GB, free: 1.145 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.3382, allocations: 10.81 kB / 0.5604 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.3383, allocations: 8.859 kB / 0.5604 GB, free: 1.129 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.455e-05/0.3383, allocations: 12 kB / 0.5604 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005204/0.3388, allocations: 119.8 kB / 0.5605 GB, free: 1 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.863e-05/0.3388, allocations: 15.94 kB / 0.5605 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002657/0.3391, allocations: 27.97 kB / 0.5606 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.194e-05/0.3391, allocations: 24 kB / 0.5606 GB, free: 0.9336 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.0003019/0.3394, allocations: 217.8 kB / 0.5608 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.109e-05/0.3395, allocations: 35.8 kB / 0.5608 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006702/0.3402, allocations: 366.1 kB / 0.5612 GB, free: 316 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.3402, allocations: 11.94 kB / 0.5612 GB, free: 304 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.3402, allocations: 0 / 0.5612 GB, free: 304 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.3402, allocations: 0 / 0.5612 GB, free: 304 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001565/0.3418, allocations: 0.8515 MB / 0.562 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.3418, allocations: 0 / 0.562 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003432/0.3421, allocations: 71.89 kB / 0.5621 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.668e-06/0.3421, allocations: 4.094 kB / 0.5621 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.046e-05/0.3421, allocations: 11.94 kB / 0.5621 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.3421, allocations: 7.938 kB / 0.5621 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/0.3421, allocations: 7.938 kB / 0.5621 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008676/0.343, allocations: 0.5859 MB / 0.5627 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.972e-05/0.3431, allocations: 23.81 kB / 0.5627 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.824e-05/0.3431, allocations: 15.97 kB / 0.5627 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001854/0.3433, allocations: 8 kB / 0.5627 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.088e-05/0.3434, allocations: 27.89 kB / 0.5628 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.492e-05/0.3434, allocations: 8 kB / 0.5628 GB, free: 14.59 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002486/0.3437, allocations: 219 kB / 0.563 GB, free: 14.38 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3437, allocations: 4 kB / 0.563 GB, free: 14.37 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000501/0.3442, allocations: 96 kB / 0.5631 GB, free: 14.28 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.00117/0.3453, allocations: 1.138 MB / 0.5642 GB, free: 13.1 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006758/0.346, allocations: 345 kB / 0.5645 GB, free: 12.76 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.346, allocations: 0 / 0.5645 GB, free: 12.76 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002244/0.3462, allocations: 137.2 kB / 0.5646 GB, free: 12.63 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005608/0.3468, allocations: 65.11 kB / 0.5647 GB, free: 12.56 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005734/0.3525, allocations: 3.981 MB / 0.5686 GB, free: 8.297 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000592/0.3531, allocations: 0.8737 MB / 0.5694 GB, free: 7.395 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003399/0.3535, allocations: 127.1 kB / 0.5696 GB, free: 7.27 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002129/0.3537, allocations: 139.4 kB / 0.5697 GB, free: 7.137 MB / 414.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3537, allocations: 0 / 0.5697 GB, free: 7.137 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04002/0.3937, allocations: 7.605 MB / 0.5771 GB, free: 15.67 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/11.92, allocations: 15.3 kB / 0.5771 GB, free: 15.66 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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial.fmu > PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.800586302997544] Failed to read output from testmodel.py, exit status != 0: 12.028466818999732 12.045834951 11.719623726 Calling exit ...