Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron.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.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceSynchron",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceSynchron",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.0009388/0.0009388, allocations: 174.5 kB / 16.07 MB, free: 5.723 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.236/1.236, allocations: 205.4 MB / 222.2 MB, free: 9.023 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.0006633/0.0006634, allocations: 78.38 kB / 270.6 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1606/0.1606, allocations: 38.08 MB / 356.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004822/0.0004823, allocations: 16 kB / 423.4 MB, free: 37.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.2752, allocations: 56.32 MB / 479.7 MB, free: 9.223 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.004234/0.2795, allocations: 4.489 MB / 484.2 MB, free: 6.281 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002304/0.2818, allocations: 1.563 MB / 485.8 MB, free: 5.18 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002506/0.2821, allocations: 26.19 kB / 485.8 MB, free: 5.168 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002391/0.2823, allocations: 80.02 kB / 485.9 MB, free: 5.125 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006493/0.283, allocations: 275.5 kB / 486.2 MB, free: 4.98 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006848/0.2837, allocations: 243.3 kB / 486.4 MB, free: 4.879 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.000737/0.2844, allocations: 0.6822 MB / 487.1 MB, free: 4.637 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007993/0.2852, allocations: 0.5411 MB / 487.6 MB, free: 4.289 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000327/0.2856, allocations: 200 kB / 487.8 MB, free: 4.215 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005136/0.2861, allocations: 353.2 kB / 488.2 MB, free: 4.117 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.38e-05/0.2862, allocations: 23.91 kB / 488.2 MB, free: 4.113 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004802/0.2866, allocations: 230.3 kB / 488.4 MB, free: 4.055 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002411/0.2869, allocations: 230.4 kB / 488.6 MB, free: 3.992 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002228/0.2871, allocations: 239.4 kB / 488.9 MB, free: 3.852 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006015/0.2877, allocations: 0.49 MB / 489.3 MB, free: 3.746 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.2878, allocations: 0 / 489.3 MB, free: 3.746 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2878, allocations: 3.938 kB / 489.4 MB, free: 3.742 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.163e-06/0.2878, allocations: 1.188 kB / 489.4 MB, free: 3.742 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001187/0.289, allocations: 0.692 MB / 490 MB, free: 3.203 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.585e-05/0.289, allocations: 10.02 kB / 490.1 MB, free: 3.203 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000103/0.2891, allocations: 87.61 kB / 490.1 MB, free: 3.137 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000528/0.2897, allocations: 90.02 kB / 490.2 MB, free: 3.105 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006037/0.2903, allocations: 406 kB / 490.6 MB, free: 2.809 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.061e-05/0.2903, allocations: 28.47 kB / 490.7 MB, free: 2.797 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001223/0.2905, allocations: 49.22 kB / 490.7 MB, free: 2.777 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001/0.2915, allocations: 0.6772 MB / 491.4 MB, free: 2.461 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.901e-05/0.2915, allocations: 0.9688 kB / 491.4 MB, free: 2.461 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.51e-05/0.2915, allocations: 20.05 kB / 491.4 MB, free: 2.445 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001829/0.2917, allocations: 51.98 kB / 491.5 MB, free: 2.438 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001051/0.2928, allocations: 0.6682 MB / 492.1 MB, free: 2.238 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003327/0.2961, allocations: 2.522 MB / 494.6 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004988/0.2966, allocations: 332.7 kB / 495 MB, free: 424 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002906/0.2969, allocations: 228.6 kB / 495.2 MB, free: 328 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.919e-05/0.297, allocations: 9.484 kB / 495.2 MB, free: 324 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.511e-05/0.297, allocations: 40.61 kB / 495.2 MB, free: 276 kB / 314.7 MB Notification: Performance of pre-optimization done (n=42): time 2.815e-06/0.297, allocations: 1.062 kB / 495.2 MB, free: 276 kB / 314.7 MB Notification: Performance of matching and sorting (n=43): time 0.002119/0.2992, allocations: 1.345 MB / 496.6 MB, free: 15.55 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.328e-05/0.2992, allocations: 85.66 kB / 496.7 MB, free: 15.46 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003856/0.2996, allocations: 305.8 kB / 497 MB, free: 15.29 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.261e-05/0.2997, allocations: 34.86 kB / 497 MB, free: 15.25 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001667/0.2998, allocations: 252.6 kB / 497.2 MB, free: 15.04 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001234/0.3, allocations: 147.9 kB / 497.4 MB, free: 14.93 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.429e-05/0.3, allocations: 10.22 kB / 497.4 MB, free: 14.92 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.3002, allocations: 347.6 kB / 497.7 MB, free: 14.59 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003089/0.3005, allocations: 199.5 kB / 497.9 MB, free: 14.54 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004096/0.3009, allocations: 362.9 kB / 498.3 MB, free: 14.27 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000774/0.3017, allocations: 0.5956 MB / 498.9 MB, free: 13.9 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.3017, allocations: 6.344 kB / 498.9 MB, free: 13.9 MB / 330.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009558/0.3026, allocations: 0.6376 MB / 499.5 MB, free: 13.64 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.3027, allocations: 7.938 kB / 499.5 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.364e-05/0.3027, allocations: 9.969 kB / 499.5 MB, free: 13.63 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.061e-05/0.3027, allocations: 7.562 kB / 499.6 MB, free: 13.63 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004509/0.3032, allocations: 113.5 kB / 499.7 MB, free: 13.62 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.925e-05/0.3032, allocations: 13.31 kB / 499.7 MB, free: 13.62 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002508/0.3035, allocations: 21 kB / 499.7 MB, free: 13.61 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.818e-05/0.3035, allocations: 21.84 kB / 499.7 MB, free: 13.61 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 55 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002763/0.3038, allocations: 215.6 kB / 499.9 MB, free: 13.45 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.547e-05/0.3039, allocations: 36.47 kB / 500 MB, free: 13.43 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000822/0.3047, allocations: 0.4906 MB / 0.4887 GB, free: 13.22 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.538e-05/0.3048, allocations: 14.61 kB / 0.4887 GB, free: 13.22 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.3048, allocations: 1 kB / 0.4887 GB, free: 13.22 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.3048, allocations: 3.031 kB / 0.4887 GB, free: 13.22 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001798/0.3066, allocations: 1.096 MB / 0.4898 GB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.3066, allocations: 4.891 kB / 0.4898 GB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00038/0.307, allocations: 73.33 kB / 0.4899 GB, free: 12.53 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.422e-06/0.307, allocations: 2.375 kB / 0.4899 GB, free: 12.53 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.113e-05/0.307, allocations: 8.469 kB / 0.4899 GB, free: 12.52 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.083e-06/0.3071, allocations: 2.156 kB / 0.4899 GB, free: 12.52 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3071, allocations: 1.281 kB / 0.4899 GB, free: 12.52 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001338/0.3084, allocations: 0.8336 MB / 0.4907 GB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001112/0.3085, allocations: 111.7 kB / 0.4908 GB, free: 11.91 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.552e-05/0.3086, allocations: 15.34 kB / 0.4908 GB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002053/0.3088, allocations: 16.02 kB / 0.4909 GB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.578e-05/0.3089, allocations: 29.95 kB / 0.4909 GB, free: 11.87 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.156e-05/0.3089, allocations: 12.19 kB / 0.4909 GB, free: 11.86 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002807/0.3092, allocations: 209.4 kB / 0.4911 GB, free: 11.73 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3092, allocations: 4.969 kB / 0.4911 GB, free: 11.72 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005727/0.3098, allocations: 110.3 kB / 0.4912 GB, free: 11.71 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (33): * Single equations (assignments): 30 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001475/0.3113, allocations: 1.389 MB / 0.4926 GB, free: 10.68 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007991/0.3121, allocations: 492.1 kB / 0.493 GB, free: 10.47 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3121, allocations: 1.156 kB / 0.493 GB, free: 10.47 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002986/0.3124, allocations: 224.3 kB / 0.4932 GB, free: 10.38 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005518/0.313, allocations: 75.5 kB / 0.4933 GB, free: 10.33 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004173/0.3172, allocations: 3.013 MB / 0.4963 GB, free: 8.332 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004518/0.3176, allocations: 0.8783 MB / 0.4971 GB, free: 7.543 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002348/0.3179, allocations: 145.8 kB / 0.4973 GB, free: 7.426 MB / 330.7 MB Notification: Performance of SimCode: time 5.71e-07/0.3179, allocations: 0 / 0.4973 GB, free: 7.426 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.575/3.893, allocations: 6.636 MB / 0.5037 GB, free: 1.406 MB / 330.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceSynchron_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceSynchron.fmu > PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1)