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.001135/0.001135, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.001852/0.001852, allocations: 195 kB / 18 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.313/1.313, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1752/0.1752, allocations: 38.03 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 55.91 kB / 457.6 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3136/0.3148, allocations: 58.06 MB / 0.5036 GB, free: 7.449 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_dq): time 0.007118/0.322, allocations: 7.426 MB / 0.5109 GB, free: 2.246 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005887/0.3279, allocations: 4.388 MB / 0.5152 GB, free: 15.16 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006825/0.3287, allocations: 16.59 kB / 0.5152 GB, free: 15.16 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002951/0.3316, allocations: 1.029 MB / 0.5162 GB, free: 14.54 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003408/0.335, allocations: 1.218 MB / 0.5174 GB, free: 13.9 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001095/0.3361, allocations: 316.2 kB / 0.5177 GB, free: 13.75 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001994/0.3382, allocations: 1.406 MB / 0.519 GB, free: 13.17 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001158/0.3393, allocations: 0.6615 MB / 0.5197 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001118/0.3405, allocations: 0.6165 MB / 0.5203 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009306/0.3414, allocations: 0.6808 MB / 0.521 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001148/0.3415, allocations: 67.19 kB / 0.521 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002555/0.3441, allocations: 1.332 MB / 0.5223 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005532/0.3447, allocations: 477.6 kB / 0.5228 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005047/0.3452, allocations: 440.7 kB / 0.5232 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002401/0.3476, allocations: 1.457 MB / 0.5246 GB, free: 10.89 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.636e-06/0.3476, allocations: 0 / 0.5246 GB, free: 10.89 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3476, allocations: 0 / 0.5246 GB, free: 10.89 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.039e-05/0.3476, allocations: 1.281 kB / 0.5246 GB, free: 10.89 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.001799/0.3494, allocations: 1.161 MB / 0.5258 GB, free: 10.05 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.3495, allocations: 12.17 kB / 0.5258 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001615/0.3497, allocations: 125.5 kB / 0.5259 GB, free: 9.961 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003295/0.353, allocations: 393.8 kB / 0.5263 GB, free: 9.895 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009402/0.3539, allocations: 490.4 kB / 0.5267 GB, free: 9.551 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.672e-05/0.354, allocations: 55.11 kB / 0.5268 GB, free: 9.527 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001445/0.3541, allocations: 74.97 kB / 0.5269 GB, free: 9.5 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001932/0.3561, allocations: 1.179 MB / 0.528 GB, free: 9.035 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.656e-05/0.3561, allocations: 5.984 kB / 0.528 GB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001272/0.3563, allocations: 27.31 kB / 0.528 GB, free: 9.012 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001097/0.3564, allocations: 68.41 kB / 0.5281 GB, free: 9.008 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001881/0.3583, allocations: 1.245 MB / 0.5293 GB, free: 8.633 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005645/0.3639, allocations: 3.504 MB / 0.5327 GB, free: 6.309 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001753/0.3657, allocations: 1.062 MB / 0.5338 GB, free: 5.746 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009124/0.3666, allocations: 0.6597 MB / 0.5344 GB, free: 5.41 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.358e-05/0.3667, allocations: 14.94 kB / 0.5344 GB, free: 5.406 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/0.3668, allocations: 47.11 kB / 0.5345 GB, free: 5.355 MB / 398.1 MB Notification: Performance of pre-optimization done (n=91): time 3.457e-06/0.3668, allocations: 4 kB / 0.5345 GB, free: 5.352 MB / 398.1 MB Notification: Performance of matching and sorting (n=92): time 0.007019/0.3738, allocations: 3.106 MB / 0.5375 GB, free: 3.699 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.898e-05/0.3739, allocations: 94.75 kB / 0.5376 GB, free: 3.594 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004073/0.3743, allocations: 355 kB / 0.5379 GB, free: 3.375 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.533e-05/0.3744, allocations: 44.97 kB / 0.538 GB, free: 3.328 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002105/0.3746, allocations: 327.1 kB / 0.5383 GB, free: 3.035 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003017/0.3749, allocations: 329.7 kB / 0.5386 GB, free: 2.75 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00028/0.3752, allocations: 163.8 kB / 0.5388 GB, free: 2.652 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.3754, allocations: 362.4 kB / 0.5391 GB, free: 2.305 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000671/0.376, allocations: 474.7 kB / 0.5396 GB, free: 2.078 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007362/0.3768, allocations: 0.5619 MB / 0.5401 GB, free: 1.746 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001515/0.3783, allocations: 1.117 MB / 0.5412 GB, free: 1.137 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.3783, allocations: 0 / 0.5412 GB, free: 1.137 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002537/0.3809, allocations: 1.48 MB / 0.5427 GB, free: 308 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.3809, allocations: 4 kB / 0.5427 GB, free: 304 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.3809, allocations: 7.984 kB / 0.5427 GB, free: 296 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009698/0.3819, allocations: 334.4 kB / 0.543 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007174/0.3826, allocations: 183.7 kB / 0.5432 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005253/0.3879, allocations: 4.192 MB / 0.5473 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006139/0.3885, allocations: 55.94 kB / 0.5473 GB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.676e-05/0.3886, allocations: 31.98 kB / 0.5473 GB, free: 11.34 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.0004659/0.3891, allocations: 293.7 kB / 0.5476 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001242/0.3892, allocations: 59.62 kB / 0.5477 GB, free: 10.98 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002577/0.3918, allocations: 1.567 MB / 0.5492 GB, free: 9.398 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.007e-05/0.3918, allocations: 12 kB / 0.5492 GB, free: 9.387 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-06/0.3918, allocations: 11.98 kB / 0.5492 GB, free: 9.375 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.121e-05/0.3918, allocations: 3.984 kB / 0.5492 GB, free: 9.371 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.004931/0.3968, allocations: 3.024 MB / 0.5522 GB, free: 6.223 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.049e-05/0.3968, allocations: 4 kB / 0.5522 GB, free: 6.219 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006542/0.3975, allocations: 171.7 kB / 0.5523 GB, free: 6.051 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000783/0.3983, allocations: 284.6 kB / 0.5526 GB, free: 5.77 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.695e-05/0.3983, allocations: 27.98 kB / 0.5526 GB, free: 5.742 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004966/0.4033, allocations: 3.911 MB / 0.5565 GB, free: 1.68 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.4033, allocations: 4 kB / 0.5565 GB, free: 1.676 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00244/0.4058, allocations: 1.598 MB / 0.558 GB, free: 12 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002389/0.406, allocations: 156.5 kB / 0.5582 GB, free: 15.84 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001038/0.4062, allocations: 35.86 kB / 0.5582 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004481/0.4066, allocations: 35.97 kB / 0.5582 GB, free: 15.77 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001413/0.4068, allocations: 80.89 kB / 0.5583 GB, free: 15.69 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.42e-05/0.4068, allocations: 39.92 kB / 0.5584 GB, free: 15.65 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002674/0.4071, allocations: 259.1 kB / 0.5586 GB, free: 15.4 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4071, allocations: 0 / 0.5586 GB, free: 15.4 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001062/0.4082, allocations: 308 kB / 0.5589 GB, free: 15.1 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.002594/0.4108, allocations: 2.153 MB / 0.561 GB, free: 12.87 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002147/0.413, allocations: 1.408 MB / 0.5624 GB, free: 11.45 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.413, allocations: 0.5625 kB / 0.5624 GB, free: 11.45 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001153/0.4141, allocations: 0.8471 MB / 0.5632 GB, free: 10.59 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007106/0.4149, allocations: 103.3 kB / 0.5633 GB, free: 10.49 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01059/0.4255, allocations: 7.556 MB / 0.5707 GB, free: 2.691 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007936/0.4263, allocations: 1.072 MB / 0.5717 GB, free: 1.594 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004756/0.4268, allocations: 188.6 kB / 0.5719 GB, free: 1.41 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003927/0.4272, allocations: 259.3 kB / 0.5722 GB, free: 1.156 MB / 430.1 MB Notification: Performance of SimCode: time 8.31e-07/0.4272, allocations: 0 / 0.5722 GB, free: 1.156 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04239/0.4696, allocations: 16.52 MB / 0.5883 GB, free: 0.7422 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.27/10.74, allocations: 7.906 kB / 0.5883 GB, free: 0.7383 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)