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.00139/0.00139, 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.001665/0.001665, allocations: 208.7 kB / 23.72 MB, free: 4.391 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.486/1.486, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.2602/0.2602, allocations: 38.55 MB / 352.5 MB, free: 12.3 MB / 286.1 MB " [Timeout remaining time 179] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Units,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Units",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.002166/0.002166, allocations: 71.89 kB / 492.5 MB, free: 4.723 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.34/0.3422, allocations: 62.47 MB / 0.5419 GB, free: 448 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.007745/0.3499, allocations: 5.838 MB / 0.5476 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003409/0.3533, allocations: 1.877 MB / 0.5495 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000233/0.3536, allocations: 29.84 kB / 0.5495 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001818/0.3554, allocations: 0.6705 MB / 0.5501 GB, free: 9.992 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008652/0.3563, allocations: 384 kB / 0.5505 GB, free: 9.684 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001148/0.3574, allocations: 412.1 kB / 0.5509 GB, free: 9.395 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001056/0.3585, allocations: 0.9405 MB / 0.5518 GB, free: 8.875 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006037/0.3591, allocations: 386 kB / 0.5522 GB, free: 8.629 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000695/0.3598, allocations: 458 kB / 0.5526 GB, free: 8.367 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008374/0.3606, allocations: 0.5454 MB / 0.5532 GB, free: 8.055 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001294/0.3607, allocations: 57.81 kB / 0.5532 GB, free: 8.055 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006112/0.3613, allocations: 250.4 kB / 0.5534 GB, free: 7.949 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005261/0.3619, allocations: 421.8 kB / 0.5539 GB, free: 7.695 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004608/0.3623, allocations: 353 kB / 0.5542 GB, free: 7.496 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001239/0.3636, allocations: 1.045 MB / 0.5552 GB, free: 6.809 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3636, allocations: 0 / 0.5552 GB, free: 6.809 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.3636, allocations: 4 kB / 0.5552 GB, free: 6.805 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.376e-05/0.3636, allocations: 0 / 0.5552 GB, free: 6.805 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.002076/0.3657, allocations: 1.019 MB / 0.5562 GB, free: 5.754 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.408e-05/0.3657, allocations: 11.98 kB / 0.5562 GB, free: 5.742 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001643/0.3659, allocations: 131.3 kB / 0.5563 GB, free: 5.605 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001022/0.3669, allocations: 204.2 kB / 0.5565 GB, free: 5.406 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001128/0.368, allocations: 0.4903 MB / 0.557 GB, free: 4.887 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.598e-05/0.3681, allocations: 58.38 kB / 0.5571 GB, free: 4.832 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001356/0.3682, allocations: 75.94 kB / 0.5571 GB, free: 4.758 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001727/0.3699, allocations: 1.13 MB / 0.5582 GB, free: 3.523 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.98e-05/0.37, allocations: 3.938 kB / 0.5583 GB, free: 3.52 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.402e-05/0.3701, allocations: 36 kB / 0.5583 GB, free: 3.484 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.537e-05/0.3701, allocations: 49.98 kB / 0.5583 GB, free: 3.438 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001422/0.3716, allocations: 0.8623 MB / 0.5592 GB, free: 2.57 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005928/0.3775, allocations: 4.827 MB / 0.5639 GB, free: 13.52 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007294/0.3782, allocations: 388.1 kB / 0.5643 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003121/0.3785, allocations: 193.7 kB / 0.5644 GB, free: 12.93 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.978e-05/0.3786, allocations: 11.94 kB / 0.5645 GB, free: 12.92 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.611e-05/0.3786, allocations: 38.55 kB / 0.5645 GB, free: 12.87 MB / 414.1 MB Notification: Performance of pre-optimization done (n=43): time 2.595e-06/0.3786, allocations: 0 / 0.5645 GB, free: 12.87 MB / 414.1 MB Notification: Performance of matching and sorting (n=44): time 0.001959/0.3806, allocations: 1.082 MB / 0.5656 GB, free: 11.78 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.525e-05/0.3806, allocations: 89.11 kB / 0.5656 GB, free: 11.68 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006051/0.3812, allocations: 0.5133 MB / 0.5661 GB, free: 11.15 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.725e-05/0.3813, allocations: 33.7 kB / 0.5662 GB, free: 11.11 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003712/0.3816, allocations: 467.2 kB / 0.5666 GB, free: 10.65 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001592/0.3818, allocations: 166.6 kB / 0.5668 GB, free: 10.49 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000219/0.382, allocations: 154.5 kB / 0.5669 GB, free: 10.33 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002071/0.3822, allocations: 374.7 kB / 0.5673 GB, free: 9.957 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003765/0.3826, allocations: 237.8 kB / 0.5675 GB, free: 9.723 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007181/0.3833, allocations: 0.6168 MB / 0.5681 GB, free: 8.926 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001217/0.3845, allocations: 0.9377 MB / 0.569 GB, free: 7.805 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/0.3845, allocations: 4 kB / 0.569 GB, free: 7.801 MB / 414.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001451/0.386, allocations: 0.8966 MB / 0.5699 GB, free: 6.898 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.72e-05/0.386, allocations: 12 kB / 0.5699 GB, free: 6.887 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.082e-05/0.386, allocations: 12 kB / 0.5699 GB, free: 6.875 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.256e-05/0.3861, allocations: 20 kB / 0.5699 GB, free: 6.855 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007328/0.3868, allocations: 223.6 kB / 0.5702 GB, free: 6.637 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.536e-05/0.3868, allocations: 23.88 kB / 0.5702 GB, free: 6.613 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004429/0.3873, allocations: 55.91 kB / 0.5702 GB, free: 6.559 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.116e-05/0.3874, allocations: 43.98 kB / 0.5703 GB, free: 6.516 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.0004483/0.3878, allocations: 309.7 kB / 0.5706 GB, free: 6.203 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.057e-05/0.3879, allocations: 55.62 kB / 0.5706 GB, free: 6.148 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00103/0.3889, allocations: 0.5563 MB / 0.5712 GB, free: 5.582 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.036e-05/0.3889, allocations: 8 kB / 0.5712 GB, free: 5.574 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.3889, allocations: 4 kB / 0.5712 GB, free: 5.57 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.858e-06/0.3889, allocations: 7.969 kB / 0.5712 GB, free: 5.562 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002275/0.3912, allocations: 1.262 MB / 0.5724 GB, free: 4.227 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.3912, allocations: 4 kB / 0.5724 GB, free: 4.223 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004333/0.3917, allocations: 111.8 kB / 0.5725 GB, free: 4.113 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.173e-05/0.3917, allocations: 7.938 kB / 0.5725 GB, free: 4.105 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.813e-05/0.3917, allocations: 8 kB / 0.5725 GB, free: 4.098 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.092e-06/0.3917, allocations: 4 kB / 0.5725 GB, free: 4.094 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.145e-06/0.3917, allocations: 7.984 kB / 0.5726 GB, free: 4.086 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008479/0.3926, allocations: 0.6462 MB / 0.5732 GB, free: 3.398 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001185/0.3927, allocations: 63.55 kB / 0.5732 GB, free: 3.336 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.179e-05/0.3928, allocations: 12 kB / 0.5733 GB, free: 3.324 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002502/0.393, allocations: 19.97 kB / 0.5733 GB, free: 3.305 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.107e-05/0.3931, allocations: 43.66 kB / 0.5733 GB, free: 3.262 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.015e-05/0.3931, allocations: 16 kB / 0.5733 GB, free: 3.246 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000383/0.3935, allocations: 326.9 kB / 0.5736 GB, free: 2.93 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.3935, allocations: 0 / 0.5736 GB, free: 2.93 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007272/0.3942, allocations: 164 kB / 0.5738 GB, free: 2.77 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.001235/0.3955, allocations: 1.202 MB / 0.575 GB, free: 1.508 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001019/0.3965, allocations: 0.5787 MB / 0.5755 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3965, allocations: 0 / 0.5755 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003439/0.3968, allocations: 228.8 kB / 0.5758 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007145/0.3975, allocations: 128.4 kB / 0.5759 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007666/0.4052, allocations: 5.792 MB / 0.5815 GB, free: 10.3 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004808/0.4057, allocations: 406.9 kB / 0.5819 GB, free: 9.875 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005678/0.4062, allocations: 225 kB / 0.5821 GB, free: 9.656 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003728/0.4066, allocations: 259.3 kB / 0.5824 GB, free: 9.402 MB / 430.1 MB Notification: Performance of SimCode: time 8.11e-07/0.4066, allocations: 0 / 0.5824 GB, free: 9.402 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04285/0.4495, allocations: 12.24 MB / 0.5943 GB, free: 13.36 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.99, allocations: 6.906 kB / 0.5944 GB, free: 13.35 MB / 446.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Introductory.Units_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-05 PowerSystems_PowerSystems_Examples_Introductory_Units.fmu > PowerSystems_PowerSystems.Examples.Introductory.Units.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.06124360812828] Failed to read output from testmodel.py, exit status != 0: 12.103685565292835 12.119869784 11.753099983 Calling exit ...