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.001374/0.001374, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001526/0.001526, allocations: 211.8 kB / 24.51 MB, free: 3.914 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.49/1.49, allocations: 230.6 MB / 258.3 MB, free: 7.781 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.2974/0.2974, allocations: 38.56 MB / 353.3 MB, free: 12.31 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="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.002101/0.002101, allocations: 63.91 kB / 493.2 MB, free: 4.719 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3266/0.3287, allocations: 62.47 MB / 0.5427 GB, free: 252 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.007925/0.3366, allocations: 5.815 MB / 0.5484 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003579/0.3402, allocations: 1.881 MB / 0.5502 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003641/0.3406, allocations: 30.09 kB / 0.5502 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001862/0.3424, allocations: 0.6737 MB / 0.5509 GB, free: 9.805 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001037/0.3435, allocations: 387.7 kB / 0.5513 GB, free: 9.492 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001344/0.3448, allocations: 399.8 kB / 0.5516 GB, free: 9.215 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001319/0.3461, allocations: 0.9445 MB / 0.5526 GB, free: 8.691 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006913/0.3468, allocations: 396.6 kB / 0.5529 GB, free: 8.434 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008081/0.3476, allocations: 456.2 kB / 0.5534 GB, free: 8.176 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000886/0.3485, allocations: 0.5719 MB / 0.5539 GB, free: 7.836 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001064/0.3486, allocations: 57.72 kB / 0.554 GB, free: 7.836 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005631/0.3492, allocations: 238.5 kB / 0.5542 GB, free: 7.742 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004586/0.3497, allocations: 426.7 kB / 0.5546 GB, free: 7.484 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004479/0.3501, allocations: 356.8 kB / 0.555 GB, free: 7.281 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001327/0.3514, allocations: 1.04 MB / 0.556 GB, free: 6.609 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.3514, allocations: 5.109 kB / 0.556 GB, free: 6.605 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3514, allocations: 0 / 0.556 GB, free: 6.605 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.569e-05/0.3515, allocations: 0 / 0.556 GB, free: 6.605 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.002052/0.3535, allocations: 1.019 MB / 0.557 GB, free: 5.574 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.3536, allocations: 15.98 kB / 0.557 GB, free: 5.559 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.867e-05/0.3536, allocations: 26.19 kB / 0.557 GB, free: 5.531 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001587/0.3538, allocations: 139.2 kB / 0.5572 GB, free: 5.387 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001016/0.3548, allocations: 204.2 kB / 0.5574 GB, free: 5.188 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009401/0.3557, allocations: 494.1 kB / 0.5578 GB, free: 4.68 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.465e-05/0.3558, allocations: 62.11 kB / 0.5579 GB, free: 4.617 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001345/0.3559, allocations: 83.97 kB / 0.558 GB, free: 4.535 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001727/0.3576, allocations: 1.122 MB / 0.5591 GB, free: 3.312 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.19e-05/0.3577, allocations: 7.938 kB / 0.5591 GB, free: 3.305 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.919e-05/0.3578, allocations: 35.98 kB / 0.5591 GB, free: 3.27 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.159e-05/0.3578, allocations: 49.98 kB / 0.5591 GB, free: 3.219 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001436/0.3593, allocations: 0.8623 MB / 0.56 GB, free: 2.355 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005691/0.365, allocations: 4.823 MB / 0.5647 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007388/0.3657, allocations: 397.2 kB / 0.5651 GB, free: 12.9 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003135/0.366, allocations: 193.7 kB / 0.5653 GB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.175e-05/0.366, allocations: 4 kB / 0.5653 GB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.6e-05/0.3661, allocations: 38.56 kB / 0.5653 GB, free: 12.65 MB / 414.1 MB Notification: Performance of pre-optimization done (n=43): time 2.755e-06/0.3661, allocations: 0 / 0.5653 GB, free: 12.65 MB / 414.1 MB Notification: Performance of matching and sorting (n=44): time 0.002009/0.3681, allocations: 1.089 MB / 0.5664 GB, free: 11.55 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.089e-05/0.3682, allocations: 85.05 kB / 0.5665 GB, free: 11.45 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005579/0.3687, allocations: 0.4901 MB / 0.5669 GB, free: 10.95 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.497e-05/0.3688, allocations: 37.7 kB / 0.567 GB, free: 10.91 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003482/0.3691, allocations: 467.4 kB / 0.5674 GB, free: 10.45 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001451/0.3693, allocations: 166.6 kB / 0.5676 GB, free: 10.29 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002185/0.3695, allocations: 154.6 kB / 0.5677 GB, free: 10.13 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001939/0.3697, allocations: 374.7 kB / 0.5681 GB, free: 9.754 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003928/0.3701, allocations: 233.9 kB / 0.5683 GB, free: 9.523 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007172/0.3708, allocations: 0.6129 MB / 0.5689 GB, free: 8.727 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001235/0.372, allocations: 0.9416 MB / 0.5698 GB, free: 7.602 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.632e-06/0.372, allocations: 4 kB / 0.5698 GB, free: 7.598 MB / 414.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001422/0.3734, allocations: 0.8957 MB / 0.5707 GB, free: 6.695 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.545e-05/0.3735, allocations: 12 kB / 0.5707 GB, free: 6.684 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.99e-05/0.3735, allocations: 12.91 kB / 0.5707 GB, free: 6.672 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.354e-05/0.3735, allocations: 20 kB / 0.5707 GB, free: 6.652 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007718/0.3743, allocations: 223.6 kB / 0.571 GB, free: 6.434 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.629e-05/0.3743, allocations: 23.88 kB / 0.571 GB, free: 6.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004436/0.3748, allocations: 55.91 kB / 0.571 GB, free: 6.355 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.487e-05/0.3748, allocations: 44 kB / 0.5711 GB, free: 6.312 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.0004065/0.3752, allocations: 305.6 kB / 0.5714 GB, free: 6.004 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.793e-05/0.3753, allocations: 55.67 kB / 0.5714 GB, free: 5.949 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001033/0.3764, allocations: 0.5602 MB / 0.572 GB, free: 5.379 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.3764, allocations: 4 kB / 0.572 GB, free: 5.375 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.3764, allocations: 4 kB / 0.572 GB, free: 5.371 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.3764, allocations: 3.938 kB / 0.572 GB, free: 5.367 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002134/0.3785, allocations: 1.262 MB / 0.5732 GB, free: 4.031 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-05/0.3785, allocations: 8.234 kB / 0.5732 GB, free: 4.023 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004558/0.379, allocations: 115.8 kB / 0.5733 GB, free: 3.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.723e-06/0.379, allocations: 4 kB / 0.5733 GB, free: 3.906 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.961e-05/0.379, allocations: 12 kB / 0.5733 GB, free: 3.895 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.144e-06/0.379, allocations: 7.938 kB / 0.5733 GB, free: 3.887 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.593e-06/0.379, allocations: 7.984 kB / 0.5734 GB, free: 3.879 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008901/0.3799, allocations: 0.6459 MB / 0.574 GB, free: 3.191 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.471e-05/0.38, allocations: 63.55 kB / 0.574 GB, free: 3.129 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.665e-05/0.3801, allocations: 8 kB / 0.5741 GB, free: 3.121 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002629/0.3803, allocations: 19.98 kB / 0.5741 GB, free: 3.102 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.241e-05/0.3804, allocations: 43.72 kB / 0.5741 GB, free: 3.059 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.19e-05/0.3805, allocations: 19.98 kB / 0.5741 GB, free: 3.039 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003536/0.3808, allocations: 322.9 kB / 0.5744 GB, free: 2.727 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3808, allocations: 0 / 0.5744 GB, free: 2.727 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006764/0.3815, allocations: 167.9 kB / 0.5746 GB, free: 2.562 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.001123/0.3826, allocations: 1.202 MB / 0.5758 GB, free: 1.301 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009423/0.3835, allocations: 0.5758 MB / 0.5763 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.78e-05/0.3836, allocations: 4.25 kB / 0.5763 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003294/0.3839, allocations: 223.2 kB / 0.5766 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007047/0.3846, allocations: 122.1 kB / 0.5767 GB, free: 408 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008213/0.3928, allocations: 5.802 MB / 0.5823 GB, free: 10.09 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004739/0.3933, allocations: 406.9 kB / 0.5827 GB, free: 9.672 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005496/0.3938, allocations: 224.9 kB / 0.5829 GB, free: 9.449 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003895/0.3942, allocations: 255.4 kB / 0.5832 GB, free: 9.199 MB / 430.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3942, allocations: 0 / 0.5832 GB, free: 9.199 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04081/0.435, allocations: 12.22 MB / 0.5951 GB, free: 13.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.4/12.84, allocations: 19.31 kB / 0.5951 GB, free: 13.19 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.951463966979645] Failed to read output from testmodel.py, exit status != 0: 13.011274674907327 13.042237902 12.685136954 Calling exit ...