Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.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.Generic.Network.NetworkLoop_dq,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop_dq",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop_dq,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop_dq",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.001272/0.001272, allocations: 109 kB / 17.06 MB, free: 6.023 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.001274/0.001274, allocations: 193.4 kB / 18 MB, free: 5.098 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.428/1.428, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1891/0.1891, allocations: 38.03 MB / 329.9 MB, free: 8.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001891/0.001891, allocations: 67.88 kB / 457.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3546/0.3565, allocations: 58.05 MB / 0.5036 GB, free: 7.539 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_dq): time 0.007695/0.3642, allocations: 7.424 MB / 0.5109 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005971/0.3703, allocations: 4.395 MB / 0.5152 GB, free: 15.25 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007324/0.371, allocations: 20.31 kB / 0.5152 GB, free: 15.24 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00278/0.3739, allocations: 1.022 MB / 0.5162 GB, free: 14.62 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003958/0.3779, allocations: 1.196 MB / 0.5173 GB, free: 14 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001246/0.3791, allocations: 320 kB / 0.5176 GB, free: 13.84 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002462/0.3816, allocations: 1.413 MB / 0.519 GB, free: 13.26 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001299/0.3829, allocations: 0.6579 MB / 0.5197 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001455/0.3844, allocations: 0.6148 MB / 0.5203 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001126/0.3856, allocations: 0.6788 MB / 0.5209 GB, free: 12.42 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001176/0.3857, allocations: 63.06 kB / 0.521 GB, free: 12.42 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00301/0.3887, allocations: 1.323 MB / 0.5223 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008233/0.3896, allocations: 484.6 kB / 0.5227 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007206/0.3903, allocations: 438.6 kB / 0.5232 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003493/0.3938, allocations: 1.461 MB / 0.5246 GB, free: 10.98 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.3938, allocations: 3.938 kB / 0.5246 GB, free: 10.98 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3938, allocations: 0 / 0.5246 GB, free: 10.98 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.109e-05/0.3939, allocations: 0 / 0.5246 GB, free: 10.98 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.002415/0.3963, allocations: 1.152 MB / 0.5257 GB, free: 10.15 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.3963, allocations: 13.39 kB / 0.5257 GB, free: 10.15 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001794/0.3965, allocations: 132.9 kB / 0.5259 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003449/0.4, allocations: 393.9 kB / 0.5262 GB, free: 9.992 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001088/0.4011, allocations: 485.5 kB / 0.5267 GB, free: 9.652 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.979e-05/0.4012, allocations: 55.33 kB / 0.5268 GB, free: 9.629 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001603/0.4013, allocations: 83.95 kB / 0.5268 GB, free: 9.594 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00242/0.4038, allocations: 1.17 MB / 0.528 GB, free: 9.137 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.25e-05/0.4038, allocations: 5.609 kB / 0.528 GB, free: 9.133 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001287/0.404, allocations: 31.39 kB / 0.528 GB, free: 9.109 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001472/0.4041, allocations: 77.97 kB / 0.5281 GB, free: 9.098 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002932/0.4071, allocations: 1.244 MB / 0.5293 GB, free: 8.723 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006404/0.4135, allocations: 3.485 MB / 0.5327 GB, free: 6.348 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00183/0.4154, allocations: 1.07 MB / 0.5337 GB, free: 5.777 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009569/0.4163, allocations: 0.6595 MB / 0.5344 GB, free: 5.441 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.178e-05/0.4164, allocations: 18.64 kB / 0.5344 GB, free: 5.434 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6e-05/0.4165, allocations: 44.53 kB / 0.5345 GB, free: 5.387 MB / 398.1 MB Notification: Performance of pre-optimization done (n=91): time 3.126e-06/0.4165, allocations: 3.938 kB / 0.5345 GB, free: 5.383 MB / 398.1 MB Notification: Performance of matching and sorting (n=92): time 0.007304/0.4238, allocations: 3.112 MB / 0.5375 GB, free: 3.723 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.429e-05/0.4239, allocations: 92.42 kB / 0.5376 GB, free: 3.621 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004717/0.4244, allocations: 358.5 kB / 0.5379 GB, free: 3.398 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.53e-05/0.4245, allocations: 41.23 kB / 0.538 GB, free: 3.355 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002911/0.4248, allocations: 327.8 kB / 0.5383 GB, free: 3.062 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000358/0.4252, allocations: 324.9 kB / 0.5386 GB, free: 2.781 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002799/0.4254, allocations: 160.2 kB / 0.5387 GB, free: 2.688 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002032/0.4257, allocations: 361.5 kB / 0.5391 GB, free: 2.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007089/0.4264, allocations: 470.7 kB / 0.5395 GB, free: 2.117 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008157/0.4272, allocations: 0.5741 MB / 0.5401 GB, free: 1.773 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001746/0.429, allocations: 1.112 MB / 0.5412 GB, free: 1.168 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.429, allocations: 1.188 kB / 0.5412 GB, free: 1.168 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002858/0.4318, allocations: 1.484 MB / 0.5426 GB, free: 332 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.638e-05/0.4319, allocations: 4 kB / 0.5426 GB, free: 328 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.4319, allocations: 4 kB / 0.5426 GB, free: 324 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001081/0.433, allocations: 334.5 kB / 0.543 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007926/0.4338, allocations: 179.7 kB / 0.5431 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006243/0.44, allocations: 4.198 MB / 0.5472 GB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007635/0.4409, allocations: 47.95 kB / 0.5473 GB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.135e-05/0.441, allocations: 31.98 kB / 0.5473 GB, free: 11.37 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (80): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,26,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000591/0.4416, allocations: 300.5 kB / 0.5476 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001443/0.4417, allocations: 59.62 kB / 0.5476 GB, free: 11.01 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003065/0.4448, allocations: 1.571 MB / 0.5492 GB, free: 9.422 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.549e-05/0.4448, allocations: 15.94 kB / 0.5492 GB, free: 9.406 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.4448, allocations: 4 kB / 0.5492 GB, free: 9.402 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.39e-05/0.4448, allocations: 7.969 kB / 0.5492 GB, free: 9.395 MB / 414.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005816/0.4507, allocations: 3.023 MB / 0.5522 GB, free: 6.246 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.029e-05/0.4507, allocations: 4 kB / 0.5522 GB, free: 6.242 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006739/0.4514, allocations: 164.2 kB / 0.5523 GB, free: 6.082 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008544/0.4523, allocations: 284.5 kB / 0.5526 GB, free: 5.801 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.293e-05/0.4524, allocations: 35.92 kB / 0.5526 GB, free: 5.766 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00571/0.4581, allocations: 3.907 MB / 0.5564 GB, free: 1.707 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.383e-06/0.4581, allocations: 12 kB / 0.5565 GB, free: 1.695 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002947/0.4611, allocations: 1.594 MB / 0.558 GB, free: 36 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003123/0.4614, allocations: 156.6 kB / 0.5582 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001095/0.4615, allocations: 27.88 kB / 0.5582 GB, free: 15.84 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004629/0.462, allocations: 39.95 kB / 0.5582 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001795/0.4622, allocations: 80.83 kB / 0.5583 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.311e-05/0.4623, allocations: 43.92 kB / 0.5583 GB, free: 15.67 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003453/0.4626, allocations: 259.2 kB / 0.5586 GB, free: 15.42 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4626, allocations: 0 / 0.5586 GB, free: 15.42 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001131/0.4638, allocations: 308 kB / 0.5589 GB, free: 15.12 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (82): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00301/0.4668, allocations: 2.157 MB / 0.561 GB, free: 12.89 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002505/0.4693, allocations: 1.409 MB / 0.5624 GB, free: 11.46 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.4693, allocations: 0 / 0.5624 GB, free: 11.46 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001352/0.4707, allocations: 0.8443 MB / 0.5632 GB, free: 10.61 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008328/0.4715, allocations: 109.1 kB / 0.5633 GB, free: 10.51 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0118/0.4833, allocations: 7.552 MB / 0.5707 GB, free: 2.715 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008732/0.4842, allocations: 1.072 MB / 0.5717 GB, free: 1.617 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005253/0.4848, allocations: 188.6 kB / 0.5719 GB, free: 1.434 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004481/0.4852, allocations: 263.3 kB / 0.5721 GB, free: 1.176 MB / 430.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4853, allocations: 0 / 0.5721 GB, free: 1.176 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04983/0.5351, allocations: 16.52 MB / 0.5883 GB, free: 0.7617 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.56, allocations: 4.406 kB / 0.5883 GB, free: 0.7578 MB / 446.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_dq_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop_dq.fmu > PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.pipe 2>&1)