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.001635/0.001635, allocations: 111.9 kB / 17.06 MB, free: 6.004 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.00176/0.00176, allocations: 198.9 kB / 18 MB, free: 5.082 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.292/1.292, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1659/0.1659, allocations: 37.98 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.001281/0.001281, allocations: 63.91 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09246/0.09375, allocations: 55.24 MB / 486.6 MB, free: 8.832 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.008828/0.1026, allocations: 7.578 MB / 494.2 MB, free: 1.215 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004385/0.107, allocations: 2.365 MB / 496.6 MB, free: 14.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006678/0.1077, allocations: 27.81 kB / 496.6 MB, free: 14.81 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002282/0.1101, allocations: 0.8595 MB / 497.4 MB, free: 13.95 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001364/0.1114, allocations: 0.5014 MB / 497.9 MB, free: 13.45 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001269/0.1127, allocations: 451 kB / 498.4 MB, free: 13 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001611/0.1143, allocations: 1.274 MB / 499.7 MB, free: 11.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008892/0.1152, allocations: 0.6738 MB / 0.4886 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000878/0.1161, allocations: 0.5641 MB / 0.4892 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008272/0.117, allocations: 0.654 MB / 0.4898 GB, free: 9.824 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001019/0.1171, allocations: 76 kB / 0.4899 GB, free: 9.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004131/0.1175, allocations: 211.7 kB / 0.4901 GB, free: 9.543 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004067/0.1179, allocations: 494.8 kB / 0.4905 GB, free: 9.059 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004872/0.1184, allocations: 0.5325 MB / 0.4911 GB, free: 8.523 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001158/0.1196, allocations: 1.238 MB / 0.4923 GB, free: 7.281 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1196, allocations: 4 kB / 0.4923 GB, free: 7.277 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1196, allocations: 0 / 0.4923 GB, free: 7.277 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.26e-05/0.1196, allocations: 0 / 0.4923 GB, free: 7.277 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.002186/0.1218, allocations: 1.302 MB / 0.4935 GB, free: 5.914 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/0.1219, allocations: 15.89 kB / 0.4936 GB, free: 5.898 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001669/0.122, allocations: 143.6 kB / 0.4937 GB, free: 5.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008154/0.1229, allocations: 167.5 kB / 0.4939 GB, free: 5.586 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001132/0.124, allocations: 0.7233 MB / 0.4946 GB, free: 4.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.934e-05/0.1241, allocations: 66.38 kB / 0.4946 GB, free: 4.754 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001166/0.1242, allocations: 79.94 kB / 0.4947 GB, free: 4.676 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001506/0.1257, allocations: 1.179 MB / 0.4959 GB, free: 3.418 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.63e-05/0.1258, allocations: 4 kB / 0.4959 GB, free: 3.414 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.44e-05/0.1258, allocations: 35.98 kB / 0.4959 GB, free: 3.379 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.989e-05/0.1259, allocations: 57.98 kB / 0.4959 GB, free: 3.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001319/0.1272, allocations: 0.9326 MB / 0.4969 GB, free: 2.391 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005407/0.1327, allocations: 4.776 MB / 0.5015 GB, free: 13.39 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001148/0.1338, allocations: 0.6678 MB / 0.5022 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005499/0.1344, allocations: 371.8 kB / 0.5025 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.731e-05/0.1345, allocations: 20.53 kB / 0.5025 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000608/0.1351, allocations: 443.6 kB / 0.503 GB, free: 11.86 MB / 398.1 MB Notification: Performance of pre-optimization done (n=65): time 2.475e-06/0.1351, allocations: 0 / 0.503 GB, free: 11.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.005112/0.1402, allocations: 2.44 MB / 0.5054 GB, free: 9.355 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/0.1403, allocations: 170.8 kB / 0.5055 GB, free: 9.152 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006249/0.141, allocations: 0.5938 MB / 0.5061 GB, free: 8.551 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.373e-05/0.141, allocations: 41.7 kB / 0.5061 GB, free: 8.504 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003452/0.1414, allocations: 486.6 kB / 0.5066 GB, free: 8.02 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001846/0.1416, allocations: 220.8 kB / 0.5068 GB, free: 7.801 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002117/0.1418, allocations: 154.6 kB / 0.507 GB, free: 7.645 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001856/0.142, allocations: 386.8 kB / 0.5073 GB, free: 7.258 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000438/0.1424, allocations: 289.8 kB / 0.5076 GB, free: 6.973 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006504/0.1431, allocations: 0.5524 MB / 0.5081 GB, free: 6.301 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001128/0.1442, allocations: 0.9611 MB / 0.5091 GB, free: 5.199 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.391e-06/0.1442, allocations: 4 kB / 0.5091 GB, free: 5.195 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001945/0.1462, allocations: 1.219 MB / 0.5103 GB, free: 3.957 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.895e-05/0.1462, allocations: 33.7 kB / 0.5103 GB, free: 3.918 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.514e-05/0.1462, allocations: 11.98 kB / 0.5103 GB, free: 3.906 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001006/0.1473, allocations: 353.8 kB / 0.5107 GB, free: 3.555 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004501/0.1477, allocations: 139.8 kB / 0.5108 GB, free: 3.418 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005625/0.1534, allocations: 5.383 MB / 0.516 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005006/0.1539, allocations: 35.94 kB / 0.5161 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.057e-05/0.154, allocations: 43.98 kB / 0.5161 GB, free: 13.65 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.0004689/0.1544, allocations: 355.1 kB / 0.5165 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/0.1545, allocations: 79.09 kB / 0.5165 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001812/0.1564, allocations: 1.036 MB / 0.5176 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.345e-06/0.1564, allocations: 8 kB / 0.5176 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.1564, allocations: 4 kB / 0.5176 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.1564, allocations: 3.984 kB / 0.5176 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003049/0.1595, allocations: 2.058 MB / 0.5196 GB, free: 9.984 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.69e-06/0.1595, allocations: 7.938 kB / 0.5196 GB, free: 9.977 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002886/0.1598, allocations: 71.91 kB / 0.5197 GB, free: 9.906 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008396/0.1606, allocations: 317.7 kB / 0.52 GB, free: 9.59 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.537e-05/0.1607, allocations: 19.92 kB / 0.52 GB, free: 9.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005479/0.1662, allocations: 5.306 MB / 0.5252 GB, free: 3.961 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.1662, allocations: 4 kB / 0.5252 GB, free: 3.957 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001772/0.168, allocations: 1.12 MB / 0.5263 GB, free: 2.789 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002066/0.1682, allocations: 148.2 kB / 0.5264 GB, free: 2.625 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001162/0.1683, allocations: 16 kB / 0.5264 GB, free: 2.609 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000322/0.1686, allocations: 19.98 kB / 0.5264 GB, free: 2.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/0.1688, allocations: 56.42 kB / 0.5265 GB, free: 2.535 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.132e-05/0.1688, allocations: 20 kB / 0.5265 GB, free: 2.516 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000511/0.1693, allocations: 423 kB / 0.5269 GB, free: 2.105 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1694, allocations: 0 / 0.5269 GB, free: 2.105 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009103/0.1703, allocations: 264 kB / 0.5272 GB, free: 1.848 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.001942/0.1722, allocations: 1.683 MB / 0.5288 GB, free: 108 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.1926/0.3648, allocations: 1.151 MB / 0.5299 GB, free: 51.55 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.571e-06/0.3649, allocations: 2.156 kB / 0.5299 GB, free: 51.55 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001033/0.3659, allocations: 0.7577 MB / 0.5307 GB, free: 51.25 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009887/0.3669, allocations: 184.1 kB / 0.5308 GB, free: 51.24 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009409/0.3763, allocations: 7.303 MB / 0.538 GB, free: 48.06 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007229/0.3771, allocations: 1.105 MB / 0.5391 GB, free: 47.32 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005139/0.3776, allocations: 175.6 kB / 0.5392 GB, free: 47.31 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003633/0.378, allocations: 329.5 kB / 0.5395 GB, free: 47.06 MB / 414.1 MB Notification: Performance of SimCode: time 8.01e-07/0.378, allocations: 0 / 0.5395 GB, free: 47.06 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04923/0.4272, allocations: 18.61 MB / 0.5577 GB, free: 38.26 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.92/13.34, allocations: 19.77 kB / 0.5577 GB, free: 38.24 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)