Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationSteadyState,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationSteadyState,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001549/0.001549, allocations: 106 kB / 17.06 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001463/0.001463, allocations: 195 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.452/1.452, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1746/0.1746, allocations: 38 MB / 309.2 MB, free: 5.949 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001398/0.001398, allocations: 68.33 kB / 431.4 MB, free: 16.26 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1127, allocations: 55.25 MB / 486.6 MB, free: 8.957 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.009154/0.1219, allocations: 7.574 MB / 494.2 MB, free: 1.344 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004069/0.126, allocations: 2.365 MB / 496.5 MB, free: 14.97 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006242/0.1267, allocations: 27.81 kB / 496.6 MB, free: 14.94 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00225/0.129, allocations: 0.8712 MB / 497.4 MB, free: 14.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001318/0.1304, allocations: 0.5014 MB / 497.9 MB, free: 13.56 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001103/0.1315, allocations: 451 kB / 498.4 MB, free: 13.12 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001301/0.1328, allocations: 1.274 MB / 499.7 MB, free: 11.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009256/0.1337, allocations: 0.6737 MB / 0.4886 GB, free: 11.16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007766/0.1345, allocations: 0.5602 MB / 0.4892 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008157/0.1353, allocations: 0.6579 MB / 0.4898 GB, free: 9.941 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001054/0.1355, allocations: 76 kB / 0.4899 GB, free: 9.867 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003758/0.1358, allocations: 215.7 kB / 0.4901 GB, free: 9.656 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003896/0.1362, allocations: 490.8 kB / 0.4905 GB, free: 9.176 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004797/0.1367, allocations: 0.5286 MB / 0.4911 GB, free: 8.645 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001117/0.1379, allocations: 1.242 MB / 0.4923 GB, free: 7.398 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.1379, allocations: 4 kB / 0.4923 GB, free: 7.395 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1379, allocations: 0 / 0.4923 GB, free: 7.395 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.455e-05/0.1379, allocations: 0 / 0.4923 GB, free: 7.395 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.002129/0.14, allocations: 1.302 MB / 0.4936 GB, free: 6.031 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.1401, allocations: 11.89 kB / 0.4936 GB, free: 6.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001469/0.1402, allocations: 147.6 kB / 0.4937 GB, free: 5.867 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000841/0.1411, allocations: 163.5 kB / 0.4939 GB, free: 5.707 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001309/0.1424, allocations: 0.7233 MB / 0.4946 GB, free: 4.941 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.241e-05/0.1425, allocations: 58.38 kB / 0.4946 GB, free: 4.883 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001316/0.1426, allocations: 91.92 kB / 0.4947 GB, free: 4.793 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001588/0.1442, allocations: 1.175 MB / 0.4959 GB, free: 3.539 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.913e-05/0.1442, allocations: 4 kB / 0.4959 GB, free: 3.535 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.482e-05/0.1443, allocations: 35.98 kB / 0.4959 GB, free: 3.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.101e-05/0.1444, allocations: 61.91 kB / 0.496 GB, free: 3.438 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001368/0.1458, allocations: 0.9288 MB / 0.4969 GB, free: 2.512 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005897/0.1517, allocations: 4.772 MB / 0.5015 GB, free: 13.52 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001042/0.1527, allocations: 0.6756 MB / 0.5022 GB, free: 12.83 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004859/0.1532, allocations: 375.8 kB / 0.5025 GB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.235e-05/0.1533, allocations: 12.55 kB / 0.5026 GB, free: 12.45 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006334/0.154, allocations: 443.7 kB / 0.503 GB, free: 11.98 MB / 398.1 MB Notification: Performance of pre-optimization done (n=65): time 2.364e-06/0.154, allocations: 0 / 0.503 GB, free: 11.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.005062/0.159, allocations: 2.44 MB / 0.5054 GB, free: 9.477 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.292e-05/0.1591, allocations: 166.8 kB / 0.5055 GB, free: 9.277 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006307/0.1598, allocations: 0.5978 MB / 0.5061 GB, free: 8.672 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.027e-05/0.1598, allocations: 37.7 kB / 0.5061 GB, free: 8.629 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003609/0.1602, allocations: 490.6 kB / 0.5066 GB, free: 8.141 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001924/0.1604, allocations: 224.8 kB / 0.5068 GB, free: 7.918 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002089/0.1606, allocations: 154.6 kB / 0.507 GB, free: 7.762 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.1608, allocations: 382.8 kB / 0.5073 GB, free: 7.379 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004175/0.1612, allocations: 289.8 kB / 0.5076 GB, free: 7.094 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006117/0.1618, allocations: 0.5563 MB / 0.5081 GB, free: 6.418 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001122/0.163, allocations: 0.9572 MB / 0.5091 GB, free: 5.32 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.163, allocations: 0 / 0.5091 GB, free: 5.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002004/0.165, allocations: 1.223 MB / 0.5103 GB, free: 4.078 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.384e-05/0.1651, allocations: 37.7 kB / 0.5103 GB, free: 4.035 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-05/0.1651, allocations: 8 kB / 0.5103 GB, free: 4.027 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001059/0.1661, allocations: 349.8 kB / 0.5107 GB, free: 3.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004852/0.1666, allocations: 139.8 kB / 0.5108 GB, free: 3.543 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006077/0.1727, allocations: 5.383 MB / 0.516 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005581/0.1733, allocations: 39.94 kB / 0.5161 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.276e-05/0.1734, allocations: 32 kB / 0.5161 GB, free: 13.79 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,relayNet.cnt,$PRE.relayNet.cnt,$whenCondition1,relayNet.y[1],$PRE.relayNet.y[1],switch.closed,$PRE.switch.closed,switch.open,$PRE.switch.open,switch.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005464/0.174, allocations: 363.1 kB / 0.5165 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001264/0.1741, allocations: 75.09 kB / 0.5165 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001899/0.176, allocations: 1.04 MB / 0.5175 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.338e-06/0.176, allocations: 8 kB / 0.5176 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/0.1761, allocations: 4 kB / 0.5176 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.1761, allocations: 7.922 kB / 0.5176 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003492/0.1796, allocations: 2.058 MB / 0.5196 GB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.1796, allocations: 0 / 0.5196 GB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003158/0.1799, allocations: 79.89 kB / 0.5197 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008707/0.1808, allocations: 309.7 kB / 0.5199 GB, free: 9.719 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.235e-05/0.1809, allocations: 19.94 kB / 0.52 GB, free: 9.699 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006107/0.187, allocations: 5.314 MB / 0.5252 GB, free: 4.082 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.187, allocations: 0 / 0.5252 GB, free: 4.082 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001958/0.189, allocations: 1.128 MB / 0.5263 GB, free: 2.906 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002594/0.1892, allocations: 148.2 kB / 0.5264 GB, free: 2.742 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00013/0.1894, allocations: 15.94 kB / 0.5264 GB, free: 2.727 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004127/0.1898, allocations: 19.98 kB / 0.5264 GB, free: 2.707 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001443/0.19, allocations: 56.44 kB / 0.5265 GB, free: 2.652 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.373e-05/0.19, allocations: 20 kB / 0.5265 GB, free: 2.633 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005812/0.1906, allocations: 419 kB / 0.5269 GB, free: 2.227 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1906, allocations: 0 / 0.5269 GB, free: 2.227 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001129/0.1917, allocations: 268 kB / 0.5272 GB, free: 1.965 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (switch.open,switch.control[1],switch.closed,$whenCondition1,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 3 (relayNet.y[1],relayNet.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002265/0.194, allocations: 1.676 MB / 0.5288 GB, free: 236 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.2545/0.4486, allocations: 1.149 MB / 0.5299 GB, free: 51.59 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.935e-06/0.4486, allocations: 1.031 kB / 0.5299 GB, free: 51.59 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00136/0.45, allocations: 0.7568 MB / 0.5307 GB, free: 51.29 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001132/0.4511, allocations: 181.8 kB / 0.5308 GB, free: 51.28 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01107/0.4622, allocations: 7.304 MB / 0.538 GB, free: 48.08 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000888/0.4632, allocations: 1.101 MB / 0.539 GB, free: 47.35 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007279/0.4639, allocations: 185.6 kB / 0.5392 GB, free: 47.34 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004353/0.4644, allocations: 328.1 kB / 0.5395 GB, free: 47.08 MB / 414.1 MB Notification: Performance of SimCode: time 2.605e-06/0.4644, allocations: 1.344 kB / 0.5395 GB, free: 47.08 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0458/0.5102, allocations: 18.6 MB / 0.5577 GB, free: 38.44 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.43/13.94, allocations: 11.88 kB / 0.5577 GB, free: 38.43 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState.fmu > PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1)