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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.0007957/0.0007957, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.00092/0.0009201, allocations: 184.2 kB / 17.57 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.203/1.203, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1647/0.1647, allocations: 38.05 MB / 310.1 MB, free: 5.91 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005087/0.0005087, allocations: 12.56 kB / 377.3 MB, free: 2.609 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2119/0.2124, allocations: 56.32 MB / 433.6 MB, free: 18.64 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_dq0): time 0.004936/0.2174, allocations: 7.198 MB / 440.8 MB, free: 11.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00475/0.2222, allocations: 4.515 MB / 445.3 MB, free: 6.875 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003373/0.2225, allocations: 11.94 kB / 445.3 MB, free: 6.863 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000356/0.2229, allocations: 135.1 kB / 445.5 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002223/0.2251, allocations: 1.207 MB / 446.7 MB, free: 5.52 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006937/0.2258, allocations: 311.3 kB / 447 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0018/0.2277, allocations: 2.584 MB / 449.5 MB, free: 2.625 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001997/0.2297, allocations: 1.419 MB / 451 MB, free: 1.172 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008823/0.2306, allocations: 485.7 kB / 451.4 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008581/0.2314, allocations: 0.7477 MB / 452.2 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.222e-05/0.2315, allocations: 40 kB / 452.2 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003127/0.2347, allocations: 1.777 MB / 454 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005675/0.2353, allocations: 0.5533 MB / 454.6 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005914/0.2359, allocations: 0.5225 MB / 455.1 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002933/0.2388, allocations: 1.928 MB / 457 MB, free: 11.1 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.2388, allocations: 0 / 457 MB, free: 11.1 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2388, allocations: 4 kB / 457 MB, free: 11.1 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.427e-05/0.2388, allocations: 0 / 457 MB, free: 11.1 MB / 334.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.001993/0.2408, allocations: 1.159 MB / 458.2 MB, free: 9.887 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.2409, allocations: 8.031 kB / 458.2 MB, free: 9.879 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001949/0.2411, allocations: 160.8 kB / 458.3 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003771/0.2449, allocations: 0.5496 MB / 458.9 MB, free: 9.16 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008551/0.2458, allocations: 0.5481 MB / 459.4 MB, free: 8.57 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.495e-05/0.2458, allocations: 66.36 kB / 459.5 MB, free: 8.508 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001501/0.246, allocations: 88.34 kB / 459.6 MB, free: 8.422 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002178/0.2482, allocations: 1.505 MB / 461.1 MB, free: 6.879 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.312e-05/0.2482, allocations: 7.938 kB / 461.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001022/0.2483, allocations: 43.92 kB / 461.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001152/0.2484, allocations: 98 kB / 461.2 MB, free: 6.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002169/0.2506, allocations: 1.546 MB / 462.8 MB, free: 5.176 MB / 334.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.006893/0.2575, allocations: 4.939 MB / 467.7 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001633/0.2592, allocations: 1.187 MB / 468.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009327/0.2601, allocations: 0.7651 MB / 469.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.009e-05/0.2602, allocations: 20.92 kB / 469.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.962e-05/0.2602, allocations: 47.56 kB / 469.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=107): time 4.388e-06/0.2602, allocations: 3.984 kB / 469.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=108): time 0.007026/0.2673, allocations: 3.697 MB / 473.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.105e-05/0.2673, allocations: 98.05 kB / 473.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004805/0.2678, allocations: 465.8 kB / 474 MB, free: 9.652 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.959e-05/0.2679, allocations: 45.7 kB / 474 MB, free: 9.602 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002379/0.2681, allocations: 435.4 kB / 474.5 MB, free: 9.168 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000279/0.2684, allocations: 370.5 kB / 474.8 MB, free: 8.801 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000118/0.2685, allocations: 93.7 kB / 474.9 MB, free: 8.703 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.2687, allocations: 382.8 kB / 475.3 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007384/0.2694, allocations: 0.5374 MB / 475.8 MB, free: 7.781 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008685/0.2703, allocations: 0.75 MB / 476.6 MB, free: 6.953 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001753/0.2721, allocations: 1.404 MB / 478 MB, free: 5.469 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.2721, allocations: 4 kB / 478 MB, free: 5.465 MB / 350.1 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.002752/0.2748, allocations: 1.798 MB / 479.8 MB, free: 3.656 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.2749, allocations: 8 kB / 479.8 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/0.2749, allocations: 8 kB / 479.8 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001026/0.2759, allocations: 409.6 kB / 480.2 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008273/0.2768, allocations: 235.6 kB / 480.4 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006104/0.2829, allocations: 5.614 MB / 486 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007636/0.2837, allocations: 67.83 kB / 486.1 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.716e-05/0.2838, allocations: 40 kB / 486.1 MB, free: 12.99 MB / 366.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.0005083/0.2843, allocations: 361.4 kB / 486.5 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001187/0.2844, allocations: 71.16 kB / 486.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002988/0.2874, allocations: 1.818 MB / 488.4 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/0.2874, allocations: 12 kB / 488.4 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.2874, allocations: 4 kB / 488.4 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.374e-05/0.2875, allocations: 11.97 kB / 488.4 MB, free: 10.7 MB / 366.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.005305/0.2928, allocations: 3.473 MB / 491.9 MB, free: 7.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.063e-05/0.2928, allocations: 7.984 kB / 491.9 MB, free: 7.082 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007159/0.2935, allocations: 196.1 kB / 492.1 MB, free: 6.891 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008751/0.2944, allocations: 350.3 kB / 492.4 MB, free: 6.543 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.325e-05/0.2945, allocations: 31.92 kB / 492.5 MB, free: 6.512 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005922/0.3004, allocations: 5.352 MB / 497.8 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/0.3005, allocations: 11.88 kB / 497.8 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002804/0.3033, allocations: 1.827 MB / 499.6 MB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002174/0.3035, allocations: 156.1 kB / 499.8 MB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.816e-05/0.3036, allocations: 28 kB / 499.8 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005077/0.3041, allocations: 55.88 kB / 499.9 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002094/0.3043, allocations: 84.81 kB / 500 MB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.976e-05/0.3044, allocations: 36 kB / 0.4883 GB, free: 14.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003588/0.3048, allocations: 335 kB / 0.4886 GB, free: 14.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3048, allocations: 0 / 0.4886 GB, free: 14.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001191/0.306, allocations: 396 kB / 0.489 GB, free: 13.88 MB / 382.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.003038/0.309, allocations: 2.387 MB / 0.4913 GB, free: 11.42 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002683/0.3117, allocations: 1.752 MB / 0.493 GB, free: 9.641 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.3118, allocations: 0 / 0.493 GB, free: 9.641 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001512/0.3133, allocations: 1.085 MB / 0.4941 GB, free: 8.531 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001036/0.3143, allocations: 131.4 kB / 0.4942 GB, free: 8.402 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01357/0.3279, allocations: 9.714 MB / 0.5037 GB, free: 14.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008381/0.3288, allocations: 1.171 MB / 0.5048 GB, free: 13.14 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006105/0.3294, allocations: 241.4 kB / 0.5051 GB, free: 12.9 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004907/0.3299, allocations: 339.3 kB / 0.5054 GB, free: 12.57 MB / 398.1 MB Notification: Performance of SimCode: time 1.162e-06/0.3299, allocations: 0 / 0.5054 GB, free: 12.57 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2138/0.5437, allocations: 18.91 MB / 0.5239 GB, free: 85.05 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001447/0.5439, allocations: 219.6 kB / 0.5241 GB, free: 84.8 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.091/2.635, allocations: 3.391 kB / 0.5241 GB, free: 84.8 MB / 398.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop_dq0_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop_dq0.fmu > PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.pipe 2>&1)