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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001293/0.001293, allocations: 112.7 kB / 17.07 MB, free: 5.992 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.001312/0.001312, allocations: 196 kB / 18.01 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1835/0.1835, allocations: 38.04 MB / 329.9 MB, free: 8.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002913/0.002913, allocations: 63.91 kB / 457.6 MB, free: 7.379 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3367/0.3396, allocations: 58.05 MB / 0.5036 GB, free: 7.551 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.007123/0.3468, allocations: 7.575 MB / 0.511 GB, free: 2.246 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00379/0.3506, allocations: 2.324 MB / 0.5133 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005913/0.3512, allocations: 28.19 kB / 0.5133 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002119/0.3533, allocations: 0.855 MB / 0.5141 GB, free: 92 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001596/0.355, allocations: 0.4963 MB / 0.5146 GB, free: 15.8 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001512/0.3565, allocations: 455.7 kB / 0.515 GB, free: 15.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002048/0.3585, allocations: 1.315 MB / 0.5163 GB, free: 15.03 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009924/0.3595, allocations: 0.6891 MB / 0.517 GB, free: 14.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001128/0.3607, allocations: 0.5674 MB / 0.5176 GB, free: 14.49 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001364/0.3621, allocations: 0.6897 MB / 0.5182 GB, free: 14.22 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002165/0.3623, allocations: 82.41 kB / 0.5183 GB, free: 14.22 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007114/0.363, allocations: 265 kB / 0.5186 GB, free: 14.16 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006171/0.3636, allocations: 0.5079 MB / 0.5191 GB, free: 13.98 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006792/0.3643, allocations: 0.5485 MB / 0.5196 GB, free: 13.66 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001845/0.3662, allocations: 1.321 MB / 0.5209 GB, free: 13.17 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3662, allocations: 0 / 0.5209 GB, free: 13.17 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.937e-06/0.3662, allocations: 0 / 0.5209 GB, free: 13.17 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.898e-05/0.3662, allocations: 5.094 kB / 0.5209 GB, free: 13.16 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.002668/0.3689, allocations: 1.366 MB / 0.5222 GB, free: 12.22 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.369, allocations: 13.48 kB / 0.5222 GB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001982/0.3692, allocations: 139.8 kB / 0.5224 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001067/0.3702, allocations: 181.3 kB / 0.5225 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001357/0.3716, allocations: 0.7442 MB / 0.5233 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.558e-05/0.3717, allocations: 70.73 kB / 0.5233 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002198/0.3719, allocations: 100.5 kB / 0.5234 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001918/0.3738, allocations: 1.219 MB / 0.5246 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.205e-05/0.3739, allocations: 6.547 kB / 0.5246 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.49e-05/0.374, allocations: 41.81 kB / 0.5247 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002723/0.3743, allocations: 65.97 kB / 0.5247 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001667/0.3759, allocations: 1.01 MB / 0.5257 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006338/0.3823, allocations: 4.754 MB / 0.5304 GB, free: 7.266 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001091/0.3834, allocations: 0.6792 MB / 0.531 GB, free: 6.891 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006388/0.3841, allocations: 454.7 kB / 0.5315 GB, free: 6.664 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.375e-05/0.3841, allocations: 16.11 kB / 0.5315 GB, free: 6.656 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007567/0.3849, allocations: 0.5057 MB / 0.532 GB, free: 6.312 MB / 398.1 MB Notification: Performance of pre-optimization done (n=69): time 2.515e-06/0.3849, allocations: 0 / 0.532 GB, free: 6.312 MB / 398.1 MB Notification: Performance of matching and sorting (n=73): time 0.004952/0.3899, allocations: 2.813 MB / 0.5347 GB, free: 4.586 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/0.39, allocations: 168.3 kB / 0.5349 GB, free: 4.391 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007508/0.3908, allocations: 0.607 MB / 0.5355 GB, free: 4.027 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.207e-05/0.3908, allocations: 38.95 kB / 0.5355 GB, free: 3.988 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004142/0.3912, allocations: 488.2 kB / 0.536 GB, free: 3.562 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002569/0.3915, allocations: 260.9 kB / 0.5362 GB, free: 3.34 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002685/0.3918, allocations: 169.5 kB / 0.5364 GB, free: 3.238 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002126/0.392, allocations: 392.1 kB / 0.5368 GB, free: 2.867 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006019/0.3926, allocations: 373.1 kB / 0.5371 GB, free: 2.695 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008224/0.3934, allocations: 0.6351 MB / 0.5377 GB, free: 2.172 MB / 398.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.007235/0.4007, allocations: 3.453 MB / 0.5411 GB, free: 92 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.707e-06/0.4007, allocations: 2.438 kB / 0.5411 GB, free: 92 kB / 398.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002359/0.4031, allocations: 1.341 MB / 0.5424 GB, free: 15.37 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.276e-05/0.4031, allocations: 34.89 kB / 0.5424 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.739e-05/0.4032, allocations: 8 kB / 0.5425 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00063/0.4038, allocations: 252.4 kB / 0.5427 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001111/0.4049, allocations: 266.8 kB / 0.5429 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005885/0.4108, allocations: 6.085 MB / 0.5489 GB, free: 8.988 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007102/0.4115, allocations: 35.98 kB / 0.5489 GB, free: 8.953 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.646e-05/0.4116, allocations: 43.98 kB / 0.549 GB, free: 8.91 MB / 414.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.0006162/0.4123, allocations: 364.7 kB / 0.5493 GB, free: 8.539 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001304/0.4124, allocations: 87.48 kB / 0.5494 GB, free: 8.453 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002059/0.4145, allocations: 1.153 MB / 0.5505 GB, free: 7.273 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-05/0.4145, allocations: 8 kB / 0.5505 GB, free: 7.266 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.4145, allocations: 8 kB / 0.5505 GB, free: 7.258 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.4145, allocations: 3.984 kB / 0.5505 GB, free: 7.254 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003623/0.4182, allocations: 2.25 MB / 0.5527 GB, free: 4.914 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.4182, allocations: 4 kB / 0.5527 GB, free: 4.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009405/0.4191, allocations: 187.9 kB / 0.5529 GB, free: 4.727 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007014/0.4198, allocations: 246.2 kB / 0.5532 GB, free: 4.477 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.59e-05/0.4199, allocations: 35.98 kB / 0.5532 GB, free: 4.441 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005773/0.4257, allocations: 6.012 MB / 0.5591 GB, free: 14.01 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.4257, allocations: 4.031 kB / 0.5591 GB, free: 14.01 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002775/0.4285, allocations: 1.647 MB / 0.5607 GB, free: 12.31 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000286/0.4288, allocations: 152.6 kB / 0.5608 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001829/0.429, allocations: 23.98 kB / 0.5608 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004762/0.4295, allocations: 23.98 kB / 0.5609 GB, free: 12.1 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001549/0.4296, allocations: 64.36 kB / 0.5609 GB, free: 12.04 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-05/0.4297, allocations: 23.98 kB / 0.561 GB, free: 12.01 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005292/0.4302, allocations: 411 kB / 0.5613 GB, free: 11.61 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4302, allocations: 0 / 0.5613 GB, free: 11.61 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00116/0.4314, allocations: 272 kB / 0.5616 GB, free: 11.35 MB / 430.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.003046/0.4345, allocations: 2.222 MB / 0.5638 GB, free: 9.066 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002329/0.4368, allocations: 1.404 MB / 0.5651 GB, free: 7.609 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.4368, allocations: 0 / 0.5651 GB, free: 7.609 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001419/0.4382, allocations: 0.9162 MB / 0.566 GB, free: 6.637 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001043/0.4393, allocations: 186.1 kB / 0.5662 GB, free: 6.465 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.013/0.4523, allocations: 8.211 MB / 0.5742 GB, free: 13.85 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009675/0.4533, allocations: 1.111 MB / 0.5753 GB, free: 12.71 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005725/0.4539, allocations: 214.5 kB / 0.5755 GB, free: 12.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004812/0.4544, allocations: 343.3 kB / 0.5759 GB, free: 12.16 MB / 446.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4544, allocations: 0 / 0.5759 GB, free: 12.16 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06079/0.5152, allocations: 18.86 MB / 0.5943 GB, free: 9.469 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.69, allocations: 10.41 kB / 0.5943 GB, free: 9.461 MB / 462.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)