Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop.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,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop",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.001088/0.001088, allocations: 107.7 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.001057/0.001057, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.318/1.318, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1748/0.1748, allocations: 38.03 MB / 329.9 MB, free: 8.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 55.91 kB / 457.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.2909, allocations: 58.06 MB / 0.5036 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop): time 0.006263/0.2972, allocations: 7.412 MB / 0.5108 GB, free: 2.293 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004941/0.3021, allocations: 4.392 MB / 0.5151 GB, free: 15.21 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003451/0.3025, allocations: 12.88 kB / 0.5151 GB, free: 15.21 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002513/0.305, allocations: 1.034 MB / 0.5162 GB, free: 14.57 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00264/0.3077, allocations: 1.209 MB / 0.5173 GB, free: 13.95 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008622/0.3086, allocations: 321.3 kB / 0.5176 GB, free: 13.79 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001693/0.3103, allocations: 1.406 MB / 0.519 GB, free: 13.21 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001009/0.3113, allocations: 0.6574 MB / 0.5197 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009372/0.3122, allocations: 0.623 MB / 0.5203 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000818/0.3131, allocations: 0.6773 MB / 0.5209 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.512e-05/0.3132, allocations: 63.41 kB / 0.521 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002256/0.3154, allocations: 1.331 MB / 0.5223 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005025/0.3159, allocations: 480.9 kB / 0.5227 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004833/0.3164, allocations: 442.3 kB / 0.5232 GB, free: 11.44 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002126/0.3186, allocations: 1.457 MB / 0.5246 GB, free: 10.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3186, allocations: 3.938 kB / 0.5246 GB, free: 10.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3186, allocations: 4 kB / 0.5246 GB, free: 10.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.38e-05/0.3186, allocations: 1.219 kB / 0.5246 GB, free: 10.93 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.001778/0.3204, allocations: 1.145 MB / 0.5257 GB, free: 10.1 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.3204, allocations: 13.95 kB / 0.5257 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000155/0.3206, allocations: 132 kB / 0.5259 GB, free: 10.01 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003325/0.3239, allocations: 392.1 kB / 0.5262 GB, free: 9.945 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009272/0.3249, allocations: 493.7 kB / 0.5267 GB, free: 9.598 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.486e-05/0.3249, allocations: 54.52 kB / 0.5268 GB, free: 9.574 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001457/0.3251, allocations: 79.45 kB / 0.5268 GB, free: 9.543 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001933/0.327, allocations: 1.178 MB / 0.528 GB, free: 9.078 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.772e-05/0.3271, allocations: 5.281 kB / 0.528 GB, free: 9.074 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.267e-05/0.3272, allocations: 31.59 kB / 0.528 GB, free: 9.051 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.835e-05/0.3273, allocations: 72.73 kB / 0.5281 GB, free: 9.043 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001919/0.3292, allocations: 1.245 MB / 0.5293 GB, free: 8.668 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005607/0.3348, allocations: 3.493 MB / 0.5327 GB, free: 6.371 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001677/0.3365, allocations: 1.062 MB / 0.5338 GB, free: 5.809 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008714/0.3374, allocations: 0.6598 MB / 0.5344 GB, free: 5.473 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.486e-05/0.3375, allocations: 19.38 kB / 0.5344 GB, free: 5.465 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.311e-05/0.3375, allocations: 46.62 kB / 0.5345 GB, free: 5.414 MB / 398.1 MB Notification: Performance of pre-optimization done (n=91): time 2.735e-06/0.3375, allocations: 5.375 kB / 0.5345 GB, free: 5.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=92): time 0.006777/0.3443, allocations: 3.112 MB / 0.5375 GB, free: 3.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.205e-05/0.3444, allocations: 87.39 kB / 0.5376 GB, free: 3.652 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004497/0.3449, allocations: 359.7 kB / 0.5379 GB, free: 3.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.532e-05/0.3449, allocations: 40.36 kB / 0.538 GB, free: 3.387 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002073/0.3452, allocations: 327.4 kB / 0.5383 GB, free: 3.094 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003417/0.3455, allocations: 329.1 kB / 0.5386 GB, free: 2.809 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002804/0.3458, allocations: 160.7 kB / 0.5387 GB, free: 2.715 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.346, allocations: 365.8 kB / 0.5391 GB, free: 2.363 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006666/0.3467, allocations: 466 kB / 0.5395 GB, free: 2.145 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007501/0.3474, allocations: 0.5703 MB / 0.5401 GB, free: 1.805 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001552/0.349, allocations: 1.117 MB / 0.5412 GB, free: 1.195 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.349, allocations: 0 / 0.5412 GB, free: 1.195 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0025/0.3515, allocations: 1.476 MB / 0.5426 GB, free: 316 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.584e-05/0.3515, allocations: 11.94 kB / 0.5426 GB, free: 304 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.3516, allocations: 4.188 kB / 0.5426 GB, free: 300 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009282/0.3525, allocations: 334.2 kB / 0.543 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007142/0.3532, allocations: 183.7 kB / 0.5431 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005322/0.3585, allocations: 4.186 MB / 0.5472 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006705/0.3592, allocations: 48.02 kB / 0.5473 GB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.726e-05/0.3593, allocations: 35.98 kB / 0.5473 GB, free: 11.35 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.0004909/0.3598, allocations: 293.6 kB / 0.5476 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001291/0.36, allocations: 59.62 kB / 0.5476 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002653/0.3626, allocations: 1.571 MB / 0.5492 GB, free: 9.406 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.76e-05/0.3627, allocations: 12 kB / 0.5492 GB, free: 9.395 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.3627, allocations: 4 kB / 0.5492 GB, free: 9.391 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/0.3627, allocations: 3.984 kB / 0.5492 GB, free: 9.387 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.005086/0.3678, allocations: 3.031 MB / 0.5522 GB, free: 6.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.3678, allocations: 4 kB / 0.5522 GB, free: 6.227 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006483/0.3685, allocations: 167.7 kB / 0.5523 GB, free: 6.062 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007942/0.3693, allocations: 285 kB / 0.5526 GB, free: 5.781 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.122e-05/0.3693, allocations: 35.86 kB / 0.5526 GB, free: 5.746 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004848/0.3742, allocations: 3.917 MB / 0.5565 GB, free: 1.68 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.3742, allocations: 4 kB / 0.5565 GB, free: 1.676 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002376/0.3766, allocations: 1.602 MB / 0.558 GB, free: 8 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002143/0.3768, allocations: 148.6 kB / 0.5582 GB, free: 15.84 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.3769, allocations: 23.94 kB / 0.5582 GB, free: 15.82 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004597/0.3774, allocations: 43.95 kB / 0.5582 GB, free: 15.78 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001413/0.3775, allocations: 80.83 kB / 0.5583 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.849e-05/0.3776, allocations: 39.94 kB / 0.5583 GB, free: 15.66 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002732/0.3779, allocations: 259.1 kB / 0.5586 GB, free: 15.41 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3779, allocations: 0 / 0.5586 GB, free: 15.41 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000982/0.3789, allocations: 304 kB / 0.5589 GB, free: 15.11 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.002598/0.3815, allocations: 2.157 MB / 0.561 GB, free: 12.88 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002083/0.3836, allocations: 1.413 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.3836, allocations: 0 / 0.5624 GB, free: 11.45 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001159/0.3848, allocations: 0.8482 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.0006683/0.3855, allocations: 106 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.01/0.3955, 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.0006798/0.3962, allocations: 1.064 MB / 0.5717 GB, free: 1.602 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004276/0.3966, allocations: 184.6 kB / 0.5719 GB, free: 1.422 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003832/0.397, allocations: 259.3 kB / 0.5721 GB, free: 1.168 MB / 430.1 MB Notification: Performance of SimCode: time 6.71e-07/0.397, allocations: 4 kB / 0.5721 GB, free: 1.164 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03829/0.4353, allocations: 16.51 MB / 0.5883 GB, free: 0.7578 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.22/10.65, allocations: 11.91 kB / 0.5883 GB, free: 0.75 MB / 446.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_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.fmu > PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop.pipe 2>&1)