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.001746/0.001746, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002082/0.002082, allocations: 209.7 kB / 23.73 MB, free: 4.387 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.575/1.575, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.2013/0.2013, allocations: 38.55 MB / 352.5 MB, free: 12.27 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.002666/0.002666, allocations: 71.89 kB / 492.5 MB, free: 4.676 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4222/0.4249, allocations: 62.46 MB / 0.5419 GB, free: 228 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.007426/0.4323, allocations: 4.335 MB / 0.5462 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003351/0.4356, allocations: 1.387 MB / 0.5475 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002712/0.4359, allocations: 21.22 kB / 0.5475 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001217/0.4371, allocations: 362.9 kB / 0.5479 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006391/0.4378, allocations: 229.8 kB / 0.5481 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008458/0.4386, allocations: 242 kB / 0.5483 GB, free: 11.19 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007599/0.4394, allocations: 0.5419 MB / 0.5489 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004476/0.4398, allocations: 211.4 kB / 0.5491 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005337/0.4404, allocations: 266.1 kB / 0.5493 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005707/0.4409, allocations: 303.3 kB / 0.5496 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.316e-05/0.441, allocations: 32.41 kB / 0.5496 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003928/0.4414, allocations: 144.1 kB / 0.5498 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000332/0.4417, allocations: 228.8 kB / 0.55 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002835/0.442, allocations: 196.3 kB / 0.5502 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008551/0.4429, allocations: 0.5809 MB / 0.5507 GB, free: 9.746 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.4429, allocations: 0 / 0.5507 GB, free: 9.746 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4429, allocations: 0 / 0.5507 GB, free: 9.746 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.4429, allocations: 4 kB / 0.5507 GB, free: 9.742 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.001485/0.4444, allocations: 0.6737 MB / 0.5514 GB, free: 9.191 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.476e-05/0.4444, allocations: 13.98 kB / 0.5514 GB, free: 9.188 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000135/0.4446, allocations: 87.62 kB / 0.5515 GB, free: 9.109 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007408/0.4453, allocations: 122.6 kB / 0.5516 GB, free: 9.051 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007963/0.4461, allocations: 341.6 kB / 0.5519 GB, free: 8.781 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.691e-05/0.4461, allocations: 29.41 kB / 0.552 GB, free: 8.77 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001464/0.4463, allocations: 61.03 kB / 0.552 GB, free: 8.738 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001159/0.4474, allocations: 0.6221 MB / 0.5526 GB, free: 8.289 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.543e-05/0.4475, allocations: 6.125 kB / 0.5526 GB, free: 8.285 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.538e-05/0.4475, allocations: 21.52 kB / 0.5527 GB, free: 8.27 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001257/0.4477, allocations: 29.02 kB / 0.5527 GB, free: 8.266 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008801/0.4485, allocations: 481.6 kB / 0.5531 GB, free: 8.039 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003779/0.4523, allocations: 2.73 MB / 0.5558 GB, free: 5.656 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004203/0.4527, allocations: 213.5 kB / 0.556 GB, free: 5.484 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002368/0.453, allocations: 137.7 kB / 0.5561 GB, free: 5.344 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.147e-05/0.453, allocations: 7.938 kB / 0.5562 GB, free: 5.336 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.117e-05/0.453, allocations: 38.56 kB / 0.5562 GB, free: 5.289 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 2.185e-06/0.453, allocations: 0 / 0.5562 GB, free: 5.289 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.001816/0.4549, allocations: 0.9071 MB / 0.5571 GB, free: 4.348 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.608e-05/0.4549, allocations: 81.11 kB / 0.5572 GB, free: 4.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003741/0.4553, allocations: 336.3 kB / 0.5575 GB, free: 3.914 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.139e-05/0.4554, allocations: 29.7 kB / 0.5575 GB, free: 3.879 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002264/0.4556, allocations: 292 kB / 0.5578 GB, free: 3.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001001/0.4557, allocations: 95.17 kB / 0.5579 GB, free: 3.496 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001428/0.4558, allocations: 98.14 kB / 0.558 GB, free: 3.395 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001943/0.456, allocations: 350.7 kB / 0.5583 GB, free: 3.043 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002395/0.4563, allocations: 144.9 kB / 0.5584 GB, free: 2.898 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004193/0.4567, allocations: 342.6 kB / 0.5588 GB, free: 2.477 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007065/0.4574, allocations: 0.5169 MB / 0.5593 GB, free: 1.867 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.4574, allocations: 4 kB / 0.5593 GB, free: 1.863 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0009343/0.4583, allocations: 0.536 MB / 0.5598 GB, free: 1.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.4584, allocations: 8 kB / 0.5598 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/0.4584, allocations: 8 kB / 0.5598 GB, free: 1.305 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.29e-05/0.4584, allocations: 8.812 kB / 0.5598 GB, free: 1.297 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004455/0.4588, allocations: 127.8 kB / 0.5599 GB, free: 1.172 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.625e-05/0.4589, allocations: 11.94 kB / 0.56 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002404/0.4591, allocations: 27.97 kB / 0.56 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.006e-05/0.4591, allocations: 24 kB / 0.56 GB, free: 1.109 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.0002775/0.4594, allocations: 213.5 kB / 0.5602 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.851e-05/0.4595, allocations: 35.77 kB / 0.5602 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006588/0.4601, allocations: 358.2 kB / 0.5606 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.4601, allocations: 4 kB / 0.5606 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.4601, allocations: 0 / 0.5606 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.4602, allocations: 7.984 kB / 0.5606 GB, free: 496 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001574/0.4617, allocations: 0.832 MB / 0.5614 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.4617, allocations: 4 kB / 0.5614 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003202/0.4621, allocations: 67.89 kB / 0.5615 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.803e-06/0.4621, allocations: 4 kB / 0.5615 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.933e-05/0.4621, allocations: 15.88 kB / 0.5615 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.4621, allocations: 3.938 kB / 0.5615 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.4621, allocations: 4 kB / 0.5615 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008508/0.4629, allocations: 0.5937 MB / 0.5621 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.103e-05/0.463, allocations: 27.77 kB / 0.5621 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.321e-05/0.4631, allocations: 15.97 kB / 0.5621 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001882/0.4633, allocations: 8 kB / 0.5621 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.062e-05/0.4633, allocations: 27.95 kB / 0.5622 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.258e-05/0.4633, allocations: 8 kB / 0.5622 GB, free: 14.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000244/0.4636, allocations: 219.1 kB / 0.5624 GB, free: 14.57 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4636, allocations: 0 / 0.5624 GB, free: 14.57 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004784/0.464, allocations: 91.98 kB / 0.5625 GB, free: 14.48 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.001285/0.4653, allocations: 1.145 MB / 0.5636 GB, free: 13.3 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000602/0.4659, allocations: 337.5 kB / 0.5639 GB, free: 12.97 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.533e-06/0.4659, allocations: 4 kB / 0.5639 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003163/0.4663, allocations: 137.2 kB / 0.564 GB, free: 12.83 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005281/0.4668, allocations: 71.52 kB / 0.5641 GB, free: 12.77 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005362/0.4721, allocations: 3.989 MB / 0.568 GB, free: 8.488 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003539/0.4725, allocations: 261.7 kB / 0.5683 GB, free: 8.211 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003668/0.4729, allocations: 131.1 kB / 0.5684 GB, free: 8.082 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002472/0.4731, allocations: 139.4 kB / 0.5685 GB, free: 7.949 MB / 414.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4731, allocations: 0 / 0.5685 GB, free: 7.949 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04015/0.5133, allocations: 7.786 MB / 0.5761 GB, free: 340 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.97, allocations: 20.88 kB / 0.5761 GB, free: 332 kB / 414.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.905086915008724] Failed to read output from testmodel.py, exit status != 0: 12.081622488796711 12.096839156 11.650685791999999 Calling exit ...