Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkLoop_d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop_d,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Network_NetworkLoop_d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop_d,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Network_NetworkLoop_d",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009559/0.0009559, allocations: 166.6 kB / 16.07 MB, free: 5.574 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.293/1.293, allocations: 205.4 MB / 222.2 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007897/0.0007899, allocations: 91.67 kB / 270.6 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1677/0.1677, allocations: 38.08 MB / 356.9 MB, free: 1.715 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005642/0.0005643, allocations: 15.98 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2676/0.2682, allocations: 56.32 MB / 479.7 MB, free: 9.23 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_d): time 0.005996/0.2743, allocations: 6.975 MB / 486.7 MB, free: 4.535 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004661/0.279, allocations: 3.966 MB / 490.7 MB, free: 1.723 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004497/0.2794, allocations: 16.31 kB / 490.7 MB, free: 1.719 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003905/0.2798, allocations: 133.9 kB / 490.8 MB, free: 1.648 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003002/0.2829, allocations: 0.9936 MB / 491.8 MB, free: 1.18 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001189/0.2841, allocations: 264.7 kB / 492.1 MB, free: 1.055 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002812/0.2869, allocations: 1.875 MB / 493.9 MB, free: 472 kB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005375/0.2874, allocations: 356 kB / 494.3 MB, free: 244 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009948/0.2885, allocations: 464.8 kB / 494.7 MB, free: 56 kB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009638/0.2894, allocations: 0.5703 MB / 495.3 MB, free: 15.85 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.557e-05/0.2895, allocations: 20.16 kB / 495.3 MB, free: 15.85 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002413/0.2919, allocations: 1.16 MB / 496.5 MB, free: 15.4 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004746/0.2924, allocations: 253.1 kB / 496.7 MB, free: 15.34 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00032/0.2927, allocations: 247.2 kB / 497 MB, free: 15.2 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001293/0.294, allocations: 0.6113 MB / 497.6 MB, free: 15.05 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.294, allocations: 0 / 497.6 MB, free: 15.05 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.2941, allocations: 0.9688 kB / 497.6 MB, free: 15.05 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.336e-06/0.2941, allocations: 0 / 497.6 MB, free: 15.05 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 101 * Number of variables: 101 Notification: Performance of Generate backend data structure: time 0.001128/0.2952, allocations: 0.7095 MB / 498.3 MB, free: 14.48 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/0.2953, allocations: 9.094 kB / 498.3 MB, free: 14.48 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001029/0.2954, allocations: 90.56 kB / 498.4 MB, free: 14.4 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001499/0.2969, allocations: 125.7 kB / 498.5 MB, free: 14.35 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004465/0.2973, allocations: 334 kB / 498.9 MB, free: 14.04 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.859e-05/0.2974, allocations: 24.81 kB / 498.9 MB, free: 14.04 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.94e-05/0.2974, allocations: 46.06 kB / 498.9 MB, free: 14.02 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008717/0.2983, allocations: 0.5914 MB / 499.5 MB, free: 13.56 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.641e-05/0.2984, allocations: 5.125 kB / 499.5 MB, free: 13.55 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.434e-05/0.2984, allocations: 18.02 kB / 499.5 MB, free: 13.54 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.986e-05/0.2985, allocations: 37.03 kB / 499.6 MB, free: 13.53 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005859/0.2991, allocations: 378.9 kB / 499.9 MB, free: 13.35 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002484/0.3016, allocations: 2.602 MB / 0.4908 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006697/0.3023, allocations: 439.6 kB / 0.4912 GB, free: 10.76 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002917/0.3026, allocations: 210.2 kB / 0.4914 GB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.134e-05/0.3026, allocations: 3.719 kB / 0.4914 GB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.971e-05/0.3026, allocations: 37.88 kB / 0.4914 GB, free: 10.6 MB / 330.7 MB Notification: Performance of pre-optimization done (n=33): time 2.835e-06/0.3026, allocations: 3.938 kB / 0.4914 GB, free: 10.59 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.001702/0.3043, allocations: 0.765 MB / 0.4922 GB, free: 10.14 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.052e-05/0.3044, allocations: 118.8 kB / 0.4923 GB, free: 10.01 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000352/0.3048, allocations: 314 kB / 0.4926 GB, free: 9.801 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.507e-05/0.3048, allocations: 30.98 kB / 0.4926 GB, free: 9.766 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001911/0.305, allocations: 255.3 kB / 0.4929 GB, free: 9.535 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001135/0.3051, allocations: 111 kB / 0.493 GB, free: 9.441 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.784e-05/0.3052, allocations: 9.406 kB / 0.493 GB, free: 9.434 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.3053, allocations: 348.3 kB / 0.4933 GB, free: 9.094 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002039/0.3055, allocations: 121.7 kB / 0.4934 GB, free: 9.035 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003153/0.3058, allocations: 278.8 kB / 0.4937 GB, free: 8.777 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005568/0.3064, allocations: 453.3 kB / 0.4941 GB, free: 8.43 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.3064, allocations: 1.125 kB / 0.4941 GB, free: 8.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0009595/0.3074, allocations: 0.5648 MB / 0.4947 GB, free: 8.121 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.532e-05/0.3074, allocations: 6.406 kB / 0.4947 GB, free: 8.121 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/0.3074, allocations: 4.844 kB / 0.4947 GB, free: 8.121 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003604/0.3078, allocations: 120.6 kB / 0.4948 GB, free: 8.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002367/0.308, allocations: 73.28 kB / 0.4949 GB, free: 8.055 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0026/0.3107, allocations: 2.36 MB / 0.4972 GB, free: 6.027 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002597/0.3109, allocations: 40.09 kB / 0.4972 GB, free: 6 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.178e-05/0.311, allocations: 24.61 kB / 0.4972 GB, free: 5.992 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002543/0.3112, allocations: 197.9 kB / 0.4974 GB, free: 5.824 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.648e-05/0.3113, allocations: 41.59 kB / 0.4975 GB, free: 5.801 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.07e-05/0.3114, allocations: 46.17 kB / 0.4975 GB, free: 5.766 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.3114, allocations: 3.375 kB / 0.4975 GB, free: 5.766 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.345e-05/0.3114, allocations: 3.781 kB / 0.4975 GB, free: 5.766 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.3115, allocations: 3.984 kB / 0.4975 GB, free: 5.762 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001278/0.3127, allocations: 0.9473 MB / 0.4984 GB, free: 5.062 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.3128, allocations: 4.969 kB / 0.4984 GB, free: 5.059 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001346/0.3129, allocations: 34.98 kB / 0.4985 GB, free: 5.051 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002577/0.3132, allocations: 108.5 kB / 0.4986 GB, free: 5 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.94e-05/0.3132, allocations: 6.375 kB / 0.4986 GB, free: 4.996 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002201/0.3154, allocations: 2.338 MB / 0.5009 GB, free: 2.996 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.3154, allocations: 1.375 kB / 0.5009 GB, free: 2.996 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000714/0.3162, allocations: 0.6191 MB / 0.5015 GB, free: 2.551 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001146/0.3163, allocations: 118.3 kB / 0.5016 GB, free: 2.43 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.9e-05/0.3163, allocations: 10.73 kB / 0.5016 GB, free: 2.422 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001686/0.3165, allocations: 13.31 kB / 0.5016 GB, free: 2.41 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.683e-05/0.3166, allocations: 28.28 kB / 0.5016 GB, free: 2.395 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.732e-05/0.3166, allocations: 6.875 kB / 0.5017 GB, free: 2.395 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002311/0.3168, allocations: 221.5 kB / 0.5019 GB, free: 2.246 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3168, allocations: 0 / 0.5019 GB, free: 2.246 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000739/0.3176, allocations: 161.8 kB / 0.502 GB, free: 2.219 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009874/0.3186, allocations: 1.157 MB / 0.5031 GB, free: 1.238 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008853/0.3195, allocations: 0.5139 MB / 0.5036 GB, free: 0.9297 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3195, allocations: 4.062 kB / 0.5037 GB, free: 0.9258 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000443/0.3199, allocations: 341.2 kB / 0.504 GB, free: 0.6953 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000608/0.3206, allocations: 60.28 kB / 0.504 GB, free: 0.6602 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003461/0.324, allocations: 2.539 MB / 0.5065 GB, free: 14.24 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004747/0.3245, allocations: 0.8824 MB / 0.5074 GB, free: 13.33 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001683/0.3247, allocations: 119.4 kB / 0.5075 GB, free: 13.21 MB / 346.7 MB Notification: Performance of SimCode: time 6.92e-07/0.3247, allocations: 0 / 0.5075 GB, free: 13.21 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.163/3.487, allocations: 7.465 MB / 0.5148 GB, free: 5.73 MB / 346.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkLoop_d.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Generic_Network_NetworkLoop_d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Generic_Network_NetworkLoop_d.fmu > PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe 2>&1)