Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.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.SimulationFixedInitial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationFixedInitial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationFixedInitial",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.001116/0.001116, allocations: 99.58 kB / 16.5 MB, free: 6.641 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.001275/0.001275, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.252/1.252, allocations: 205.1 MB / 223.3 MB, free: 12.46 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1627/0.1627, allocations: 38 MB / 308.6 MB, free: 6.234 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.001359/0.001359, allocations: 67.91 kB / 374.7 MB, free: 4.012 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2391/0.2405, allocations: 55.23 MB / 430 MB, free: 19.76 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.007871/0.2484, allocations: 9.228 MB / 439.2 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004879/0.2534, allocations: 2.895 MB / 442.1 MB, free: 7.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008147/0.2542, allocations: 63.62 kB / 442.1 MB, free: 7.527 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001878/0.2561, allocations: 0.7971 MB / 442.9 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000976/0.2571, allocations: 485.9 kB / 443.4 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009956/0.2581, allocations: 403.2 kB / 443.8 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001325/0.2595, allocations: 1.98 MB / 445.8 MB, free: 3.875 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007999/0.2603, allocations: 0.6695 MB / 446.5 MB, free: 3.199 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006223/0.2609, allocations: 0.49 MB / 446.9 MB, free: 2.707 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007531/0.2617, allocations: 0.7242 MB / 447.7 MB, free: 1.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.987e-05/0.2618, allocations: 56 kB / 447.7 MB, free: 1.926 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004742/0.2622, allocations: 251.6 kB / 448 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003042/0.2626, allocations: 494.8 kB / 448.5 MB, free: 1.195 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003845/0.263, allocations: 0.5286 MB / 449 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001022/0.264, allocations: 1.281 MB / 450.3 MB, free: 15.38 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.808e-06/0.264, allocations: 4 kB / 450.3 MB, free: 15.37 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.264, allocations: 0 / 450.3 MB, free: 15.37 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.224e-05/0.264, allocations: 0 / 450.3 MB, free: 15.37 MB / 334.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.002548/0.2666, allocations: 1.331 MB / 451.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.23e-05/0.2666, allocations: 8.031 kB / 451.6 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001805/0.2668, allocations: 147.7 kB / 451.8 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001073/0.2679, allocations: 171.4 kB / 451.9 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001137/0.2691, allocations: 0.7038 MB / 452.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.539e-05/0.2691, allocations: 62.38 kB / 452.7 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002097/0.2694, allocations: 107.8 kB / 452.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002017/0.2714, allocations: 1.212 MB / 454 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.917e-05/0.2714, allocations: 11.94 kB / 454 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.444e-05/0.2715, allocations: 36 kB / 454 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002621/0.2718, allocations: 69.95 kB / 454.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001675/0.2735, allocations: 1.007 MB / 455.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006102/0.2796, allocations: 4.775 MB / 459.9 MB, free: 5.359 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/0.2807, allocations: 0.6726 MB / 460.6 MB, free: 4.668 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006127/0.2813, allocations: 455.9 kB / 461 MB, free: 4.215 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.135e-05/0.2814, allocations: 4.562 kB / 461 MB, free: 4.211 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000836/0.2822, allocations: 0.5041 MB / 461.5 MB, free: 3.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=69): time 3.066e-06/0.2822, allocations: 0 / 461.5 MB, free: 3.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.004543/0.2868, allocations: 2.788 MB / 464.3 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.714e-05/0.2869, allocations: 170.8 kB / 464.5 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006465/0.2875, allocations: 0.5899 MB / 465.1 MB, free: 8 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.666e-05/0.2876, allocations: 41.7 kB / 465.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003361/0.2879, allocations: 478.9 kB / 465.6 MB, free: 15.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002058/0.2882, allocations: 256.5 kB / 465.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002409/0.2884, allocations: 174.5 kB / 466 MB, free: 15.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.2886, allocations: 386.8 kB / 466.4 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005501/0.2891, allocations: 381.8 kB / 466.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007082/0.2899, allocations: 0.6271 MB / 467.4 MB, free: 13.55 MB / 350.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[1] = lineR.i_start[1] (lineL.i_start[1] - lineB.i_start[1] = lineR.i_start[1]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[2] = lineR.i_start[2] (lineL.i_start[2] - lineB.i_start[2] = lineR.i_start[2]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[3] = lineR.i_start[3] (lineL.i_start[3] - lineB.i_start[3] = lineR.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.006781/0.2966, allocations: 3.444 MB / 470.8 MB, free: 9.934 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.865e-06/0.2967, allocations: 4 kB / 470.8 MB, free: 9.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002174/0.2989, allocations: 1.335 MB / 472.2 MB, free: 8.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.027e-05/0.2989, allocations: 33.7 kB / 472.2 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.489e-05/0.2989, allocations: 8.781 kB / 472.2 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006268/0.2996, allocations: 258.4 kB / 472.5 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00104/0.3006, allocations: 267.5 kB / 472.7 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005132/0.3058, allocations: 5.573 MB / 478.3 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006173/0.3064, allocations: 35.98 kB / 478.3 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.677e-05/0.3065, allocations: 36 kB / 478.4 MB, free: 1.953 MB / 350.1 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization system: lineR.i[1] = lineR.i_start[1] lineR.i[2] = lineR.i_start[2] lineR.i[3] = lineR.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,relayNet.cnt,$PRE.relayNet.cnt,$whenCondition1,$PRE.switch.t0,$PRE.switch.closed,$PRE.switch.open,relayNet.y[1],$PRE.relayNet.y[1],switch.closed,switch.open,switch.t0,switch.control[1],$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 94 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,7,100.0%), (1,7,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005647/0.307, allocations: 387 kB / 478.7 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/0.3072, allocations: 79.06 kB / 478.8 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001929/0.3091, allocations: 1.145 MB / 480 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.888e-05/0.3091, allocations: 8.125 kB / 480 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.688e-05/0.3092, allocations: 11.94 kB / 480 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.3092, allocations: 3.984 kB / 480 MB, free: 292 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00338/0.3126, allocations: 2.253 MB / 482.2 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.395e-06/0.3126, allocations: 4 kB / 482.2 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000871/0.3135, allocations: 187.9 kB / 482.4 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000698/0.3142, allocations: 246.6 kB / 482.7 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.867e-05/0.3142, allocations: 23.98 kB / 482.7 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005074/0.3193, allocations: 5.507 MB / 488.2 MB, free: 7.566 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.3193, allocations: 32 / 488.2 MB, free: 7.566 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002629/0.322, allocations: 1.638 MB / 489.8 MB, free: 5.875 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002198/0.3222, allocations: 152.2 kB / 490 MB, free: 5.707 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001135/0.3223, allocations: 19.94 kB / 490 MB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00039/0.3227, allocations: 31.97 kB / 490 MB, free: 5.656 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001506/0.3229, allocations: 52.48 kB / 490.1 MB, free: 5.605 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.261e-05/0.323, allocations: 23.98 kB / 490.1 MB, free: 5.582 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005012/0.3235, allocations: 411 kB / 490.5 MB, free: 5.184 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3235, allocations: 0 / 490.5 MB, free: 5.184 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001085/0.3246, allocations: 276.1 kB / 490.8 MB, free: 4.914 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (lineL.i[1],lineL.i[2],lineL.i[3],lineB.i[1],lineB.i[2],lineB.i[3]) * Number of discrete variables: 9 (switch.control[1],$whenCondition2,$whenCondition1,switch.t0,switch.open,switch.closed,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 5 (relayNet.y[1],relayNet.cnt,$whenCondition1,switch.open,switch.closed) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 48 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,7,100.0%), (1,7,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002809/0.3274, allocations: 2.225 MB / 493 MB, free: 2.625 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002198/0.3296, allocations: 1.384 MB / 494.4 MB, free: 1.191 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3296, allocations: 0 / 494.4 MB, free: 1.191 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001354/0.331, allocations: 0.921 MB / 495.3 MB, free: 228 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009546/0.3319, allocations: 175.2 kB / 495.5 MB, free: 56 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01206/0.344, allocations: 8.753 MB / 0.4924 GB, free: 6.875 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007844/0.3448, allocations: 1.111 MB / 0.4935 GB, free: 5.734 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006067/0.3454, allocations: 214.4 kB / 0.4937 GB, free: 5.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004346/0.3459, allocations: 343.3 kB / 0.494 GB, free: 5.184 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3459, allocations: 3.938 kB / 0.494 GB, free: 5.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04728/0.3932, allocations: 17.91 MB / 0.5115 GB, free: 3.27 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002019/0.3934, allocations: 227.2 kB / 0.5117 GB, free: 3.016 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.409/2.803, allocations: 0 / 0.5117 GB, free: 3.016 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_SimulationFixedInitial_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_SimulationFixedInitial.fmu > PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1)