Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.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_dq0,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop_dq0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop_dq0,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop_dq0",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.001616/0.001616, allocations: 114.2 kB / 17.06 MB, free: 5.996 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.001756/0.001756, allocations: 194.9 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.347/1.347, 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.1739/0.1739, allocations: 38.04 MB / 329.9 MB, free: 8.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 59.91 kB / 457.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2928/0.2941, allocations: 58.06 MB / 0.5036 GB, free: 7.484 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_dq0): time 0.006254/0.3004, allocations: 7.42 MB / 0.5109 GB, free: 2.285 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00518/0.3056, allocations: 4.44 MB / 0.5152 GB, free: 15.19 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004504/0.3061, allocations: 16.56 kB / 0.5152 GB, free: 15.18 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002535/0.3086, allocations: 1.041 MB / 0.5162 GB, free: 14.55 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003205/0.3118, allocations: 1.286 MB / 0.5175 GB, free: 13.9 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001061/0.3129, allocations: 340.1 kB / 0.5178 GB, free: 13.74 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001886/0.3148, allocations: 1.406 MB / 0.5192 GB, free: 13.16 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00121/0.316, allocations: 0.8062 MB / 0.52 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001137/0.3172, allocations: 0.6431 MB / 0.5206 GB, free: 12.53 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009313/0.3181, allocations: 0.7393 MB / 0.5213 GB, free: 12.23 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001152/0.3183, allocations: 78.88 kB / 0.5214 GB, free: 12.23 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002913/0.3212, allocations: 1.526 MB / 0.5229 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006527/0.3218, allocations: 0.5973 MB / 0.5235 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006034/0.3224, allocations: 0.5635 MB / 0.524 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00311/0.3256, allocations: 1.893 MB / 0.5259 GB, free: 10.53 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3256, allocations: 0 / 0.5259 GB, free: 10.53 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3256, allocations: 0 / 0.5259 GB, free: 10.53 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.632e-05/0.3256, allocations: 0 / 0.5259 GB, free: 10.53 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: 267 * Number of variables: 267 Notification: Performance of Generate backend data structure: time 0.002462/0.3281, allocations: 1.366 MB / 0.5272 GB, free: 9.59 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.3281, allocations: 17.02 kB / 0.5272 GB, free: 9.582 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001932/0.3283, allocations: 161.6 kB / 0.5274 GB, free: 9.477 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004348/0.3327, allocations: 0.5441 MB / 0.5279 GB, free: 9.391 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001262/0.334, allocations: 0.5654 MB / 0.5285 GB, free: 8.996 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.783e-05/0.3341, allocations: 65.86 kB / 0.5285 GB, free: 8.969 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001941/0.3343, allocations: 90.12 kB / 0.5286 GB, free: 8.938 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002478/0.3368, allocations: 1.507 MB / 0.5301 GB, free: 8.152 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.045e-05/0.3368, allocations: 5.312 kB / 0.5301 GB, free: 8.148 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001174/0.3369, allocations: 40.39 kB / 0.5301 GB, free: 8.117 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001188/0.337, allocations: 98.22 kB / 0.5302 GB, free: 8.09 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002388/0.3394, allocations: 1.541 MB / 0.5317 GB, free: 7.363 MB / 398.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 preOpt removeSimpleEquations (simulation): time 0.007883/0.3473, allocations: 4.908 MB / 0.5365 GB, free: 3.867 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0018/0.3491, allocations: 1.179 MB / 0.5377 GB, free: 3.25 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001026/0.3502, allocations: 0.7695 MB / 0.5384 GB, free: 2.859 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.473e-05/0.3503, allocations: 20.45 kB / 0.5384 GB, free: 2.852 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.592e-05/0.3503, allocations: 43.41 kB / 0.5385 GB, free: 2.801 MB / 398.1 MB Notification: Performance of pre-optimization done (n=107): time 3.006e-06/0.3503, allocations: 0 / 0.5385 GB, free: 2.801 MB / 398.1 MB Notification: Performance of matching and sorting (n=108): time 0.007668/0.358, allocations: 3.692 MB / 0.5421 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.533e-05/0.3581, allocations: 97.08 kB / 0.5422 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005144/0.3586, allocations: 474.5 kB / 0.5426 GB, free: 280 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.446e-05/0.3587, allocations: 45.7 kB / 0.5427 GB, free: 228 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002557/0.3589, allocations: 440.6 kB / 0.5431 GB, free: 15.79 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003192/0.3593, allocations: 388.6 kB / 0.5435 GB, free: 15.4 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003082/0.3596, allocations: 194.9 kB / 0.5437 GB, free: 15.21 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.3597, allocations: 386.8 kB / 0.544 GB, free: 14.82 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007796/0.3605, allocations: 0.5335 MB / 0.5445 GB, free: 14.29 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009311/0.3614, allocations: 0.7578 MB / 0.5453 GB, free: 13.45 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00184/0.3633, allocations: 1.4 MB / 0.5467 GB, free: 11.97 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.3633, allocations: 0 / 0.5467 GB, free: 11.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.003009/0.3663, allocations: 1.806 MB / 0.5484 GB, free: 10.15 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.3664, allocations: 8 kB / 0.5484 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.3664, allocations: 8.5 kB / 0.5484 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001112/0.3675, allocations: 413.3 kB / 0.5488 GB, free: 9.727 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009358/0.3684, allocations: 235.6 kB / 0.549 GB, free: 9.496 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006695/0.3752, allocations: 6.07 MB / 0.555 GB, free: 3.125 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008857/0.3761, allocations: 63.92 kB / 0.555 GB, free: 3.062 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.693e-05/0.3762, allocations: 47.92 kB / 0.5551 GB, free: 3.016 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * 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 (105): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,26,100.0%), (1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005996/0.3768, allocations: 365.3 kB / 0.5554 GB, free: 2.648 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000148/0.3769, allocations: 83.59 kB / 0.5555 GB, free: 2.566 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003017/0.38, allocations: 1.81 MB / 0.5573 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.039e-05/0.38, allocations: 12 kB / 0.5573 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.38, allocations: 7.938 kB / 0.5573 GB, free: 0.7227 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.224e-05/0.38, allocations: 7.969 kB / 0.5573 GB, free: 0.7148 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.00581/0.3858, allocations: 3.465 MB / 0.5607 GB, free: 13.11 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.3858, allocations: 4 kB / 0.5607 GB, free: 13.11 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007855/0.3866, allocations: 191.7 kB / 0.5609 GB, free: 12.92 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009476/0.3876, allocations: 350 kB / 0.5612 GB, free: 12.57 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.343e-05/0.3877, allocations: 27.94 kB / 0.5612 GB, free: 12.55 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006584/0.3943, allocations: 5.796 MB / 0.5669 GB, free: 6.461 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.071e-06/0.3943, allocations: 7.938 kB / 0.5669 GB, free: 6.453 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002889/0.3972, allocations: 1.829 MB / 0.5687 GB, free: 4.555 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002676/0.3975, allocations: 164.5 kB / 0.5688 GB, free: 4.375 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001301/0.3976, allocations: 27.98 kB / 0.5689 GB, free: 4.348 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005669/0.3982, allocations: 51.89 kB / 0.5689 GB, free: 4.297 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000169/0.3984, allocations: 96.81 kB / 0.569 GB, free: 4.203 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.55e-05/0.3984, allocations: 32 kB / 0.569 GB, free: 4.172 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00039/0.3988, allocations: 327.1 kB / 0.5694 GB, free: 3.852 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3989, allocations: 0 / 0.5694 GB, free: 3.852 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001359/0.4002, allocations: 403.9 kB / 0.5697 GB, free: 3.457 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 (91): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * 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 {(1,7,100.0%), (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.003026/0.4033, allocations: 2.396 MB / 0.5721 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002703/0.406, allocations: 1.76 MB / 0.5738 GB, free: 15.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.239e-06/0.406, allocations: 4.125 kB / 0.5738 GB, free: 15.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001518/0.4075, allocations: 1.077 MB / 0.5749 GB, free: 14.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008158/0.4083, allocations: 130.8 kB / 0.575 GB, free: 13.96 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01289/0.4212, allocations: 9.151 MB / 0.5839 GB, free: 4.449 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000897/0.4222, allocations: 1.167 MB / 0.5851 GB, free: 3.254 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005576/0.4227, allocations: 233.4 kB / 0.5853 GB, free: 3.023 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004981/0.4233, allocations: 343.3 kB / 0.5856 GB, free: 2.688 MB / 446.1 MB Notification: Performance of SimCode: time 9.42e-07/0.4233, allocations: 3.938 kB / 0.5856 GB, free: 2.684 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04537/0.4686, allocations: 20.47 MB / 0.6056 GB, free: 14.33 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.63/11.1, allocations: 11.58 kB / 0.6056 GB, free: 14.32 MB / 478.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0_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_dq0.fmu > PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.pipe 2>&1)