Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.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.ReferenceInertial,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceInertial",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.0008564/0.0008564, allocations: 173.2 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.225/1.225, allocations: 205.4 MB / 222.2 MB, free: 9.02 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.0007141/0.0007142, allocations: 92.8 kB / 270.6 MB, free: 8.254 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.07 MB / 356.9 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005524/0.0005526, allocations: 16 kB / 423.4 MB, free: 37.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2834, allocations: 56.33 MB / 479.7 MB, free: 9.234 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.005501/0.2889, allocations: 4.485 MB / 484.2 MB, free: 6.297 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00286/0.2918, allocations: 1.571 MB / 485.8 MB, free: 5.188 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005847/0.2924, allocations: 25.94 kB / 485.8 MB, free: 5.176 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003721/0.2928, allocations: 71.8 kB / 485.9 MB, free: 5.141 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001004/0.2938, allocations: 259.9 kB / 486.1 MB, free: 4.996 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009851/0.2948, allocations: 241.4 kB / 486.4 MB, free: 4.898 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009659/0.2958, allocations: 0.6443 MB / 487 MB, free: 4.668 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009365/0.2968, allocations: 0.5313 MB / 487.5 MB, free: 4.328 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000528/0.2973, allocations: 199.5 kB / 487.7 MB, free: 4.25 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006206/0.2979, allocations: 289.2 kB / 488 MB, free: 4.164 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.309e-05/0.298, allocations: 19.34 kB / 488 MB, free: 4.16 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004182/0.2985, allocations: 131 kB / 488.2 MB, free: 4.129 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003319/0.2988, allocations: 208.1 kB / 488.4 MB, free: 4.078 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004549/0.2993, allocations: 229.4 kB / 488.6 MB, free: 3.938 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007129/0.3, allocations: 420.4 kB / 489 MB, free: 3.852 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.3, allocations: 0 / 489 MB, free: 3.852 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3, allocations: 1.469 kB / 489 MB, free: 3.852 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.514e-05/0.3001, allocations: 3.938 kB / 489 MB, free: 3.848 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001295/0.3014, allocations: 0.6628 MB / 489.7 MB, free: 3.312 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.3014, allocations: 8.781 kB / 489.7 MB, free: 3.312 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001509/0.3016, allocations: 86.52 kB / 489.8 MB, free: 3.246 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006043/0.3022, allocations: 81.06 kB / 489.9 MB, free: 3.223 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006697/0.3029, allocations: 390.8 kB / 490.2 MB, free: 2.93 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.301e-05/0.3029, allocations: 29.53 kB / 490.3 MB, free: 2.918 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000131/0.303, allocations: 51.81 kB / 490.3 MB, free: 2.898 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009314/0.304, allocations: 0.6152 MB / 490.9 MB, free: 2.539 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/0.304, allocations: 1.125 kB / 490.9 MB, free: 2.539 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.234e-05/0.3041, allocations: 17.88 kB / 490.9 MB, free: 2.527 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001198/0.3042, allocations: 35.98 kB / 491 MB, free: 2.52 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008292/0.305, allocations: 479.1 kB / 491.4 MB, free: 2.371 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003004/0.308, allocations: 2.894 MB / 494.3 MB, free: 92 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004166/0.3085, allocations: 244.9 kB / 494.6 MB, free: 15.96 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002269/0.3087, allocations: 144.3 kB / 494.7 MB, free: 15.91 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.56e-05/0.3088, allocations: 3.375 kB / 494.7 MB, free: 15.91 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.483e-05/0.3088, allocations: 37.55 kB / 494.8 MB, free: 15.86 MB / 330.7 MB Notification: Performance of pre-optimization done (n=27): time 1.944e-06/0.3088, allocations: 4 kB / 494.8 MB, free: 15.86 MB / 330.7 MB Notification: Performance of matching and sorting (n=28): time 0.001885/0.3107, allocations: 0.9627 MB / 495.7 MB, free: 15.28 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.429e-05/0.3108, allocations: 84.55 kB / 495.8 MB, free: 15.18 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004414/0.3112, allocations: 320.5 kB / 496.1 MB, free: 15.02 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.092e-05/0.3113, allocations: 30.92 kB / 496.2 MB, free: 14.98 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002076/0.3115, allocations: 273.8 kB / 496.4 MB, free: 14.76 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.116e-05/0.3116, allocations: 101.3 kB / 496.5 MB, free: 14.68 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.456e-05/0.3116, allocations: 10.03 kB / 496.5 MB, free: 14.68 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.3118, allocations: 346.2 kB / 496.9 MB, free: 14.35 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002654/0.312, allocations: 143.5 kB / 497 MB, free: 14.31 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003725/0.3124, allocations: 344.1 kB / 497.3 MB, free: 14 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006776/0.3131, allocations: 0.5106 MB / 497.9 MB, free: 13.62 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.3131, allocations: 6.156 kB / 497.9 MB, free: 13.61 MB / 330.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0008698/0.314, allocations: 0.5302 MB / 498.4 MB, free: 13.39 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.274e-05/0.314, allocations: 12.66 kB / 498.4 MB, free: 13.39 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.314, allocations: 9.031 kB / 498.4 MB, free: 13.39 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.12e-05/0.3141, allocations: 7.031 kB / 498.4 MB, free: 13.39 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000415/0.3145, allocations: 115.4 kB / 498.5 MB, free: 13.38 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.819e-05/0.3145, allocations: 11.73 kB / 498.5 MB, free: 13.38 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002848/0.3148, allocations: 26.53 kB / 498.6 MB, free: 13.38 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.808e-05/0.3149, allocations: 31.08 kB / 498.6 MB, free: 13.36 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (58): * Single equations (assignments): 58 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002667/0.3151, allocations: 220.2 kB / 498.8 MB, free: 13.2 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.742e-05/0.3152, allocations: 39.08 kB / 498.9 MB, free: 13.17 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006491/0.3159, allocations: 354.3 kB / 499.2 MB, free: 13.03 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.3159, allocations: 3.375 kB / 499.2 MB, free: 13.03 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.3159, allocations: 1.703 kB / 499.2 MB, free: 13.03 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.3159, allocations: 1.359 kB / 499.2 MB, free: 13.03 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001491/0.3174, allocations: 0.8909 MB / 0.4884 GB, free: 12.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.3174, allocations: 1.406 kB / 0.4884 GB, free: 12.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003278/0.3178, allocations: 63.06 kB / 0.4884 GB, free: 12.49 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.533e-06/0.3178, allocations: 3.078 kB / 0.4884 GB, free: 12.49 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.435e-05/0.3178, allocations: 14.81 kB / 0.4885 GB, free: 12.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.3178, allocations: 5.062 kB / 0.4885 GB, free: 12.48 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/0.3178, allocations: 2.859 kB / 0.4885 GB, free: 12.48 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008609/0.3187, allocations: 0.5828 MB / 0.489 GB, free: 12.15 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000106/0.3188, allocations: 104.1 kB / 0.4891 GB, free: 12.04 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.292e-05/0.3189, allocations: 12.95 kB / 0.4891 GB, free: 12.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001777/0.3191, allocations: 10.44 kB / 0.4892 GB, free: 12.03 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.117e-05/0.3191, allocations: 23.73 kB / 0.4892 GB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.747e-05/0.3192, allocations: 13.36 kB / 0.4892 GB, free: 12.02 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002787/0.3194, allocations: 216.7 kB / 0.4894 GB, free: 11.9 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.3194, allocations: 1.031 kB / 0.4894 GB, free: 11.9 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004869/0.3199, allocations: 88.41 kB / 0.4895 GB, free: 11.89 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 (31): * Single equations (assignments): 30 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001119/0.3211, allocations: 1.133 MB / 0.4906 GB, free: 11.03 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006566/0.3217, allocations: 354.1 kB / 0.4909 GB, free: 10.93 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3218, allocations: 0 / 0.4909 GB, free: 10.93 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002296/0.322, allocations: 148.7 kB / 0.4911 GB, free: 10.88 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000538/0.3225, allocations: 66.36 kB / 0.4911 GB, free: 10.86 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004298/0.3268, allocations: 2.697 MB / 0.4938 GB, free: 8.996 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005101/0.3274, allocations: 0.8676 MB / 0.4946 GB, free: 8.207 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002547/0.3276, allocations: 145.3 kB / 0.4947 GB, free: 8.09 MB / 330.7 MB Notification: Performance of SimCode: time 6.91e-07/0.3276, allocations: 0 / 0.4947 GB, free: 8.09 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.455/3.782, allocations: 6.098 MB / 0.5007 GB, free: 4.414 MB / 330.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceInertial_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceInertial.fmu > PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1)