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: translateModel(PowerSystems.Examples.Introductory.ReferenceSynchron,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron") translateModel(PowerSystems.Examples.Introductory.ReferenceSynchron,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009649/0.0009649, 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.189/1.189, 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.00069/0.0006901, allocations: 89.48 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.1612/0.1612, allocations: 38.07 MB / 356.9 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003334/0.0003335, allocations: 16 kB / 423.3 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2223/0.2227, allocations: 56.32 MB / 479.6 MB, free: 9.23 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.004225/0.2269, allocations: 4.482 MB / 484.1 MB, free: 6.297 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002078/0.229, allocations: 1.57 MB / 485.7 MB, free: 5.188 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002308/0.2293, allocations: 30.03 kB / 485.7 MB, free: 5.172 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002096/0.2295, allocations: 73 kB / 485.8 MB, free: 5.137 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006063/0.2301, allocations: 274.1 kB / 486 MB, free: 4.992 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006339/0.2308, allocations: 244.3 kB / 486.3 MB, free: 4.891 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.000754/0.2315, allocations: 0.6837 MB / 487 MB, free: 4.648 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008331/0.2324, allocations: 0.532 MB / 487.5 MB, free: 4.309 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003344/0.2327, allocations: 208.6 kB / 487.7 MB, free: 4.227 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004687/0.2332, allocations: 352.7 kB / 488 MB, free: 4.129 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.009e-05/0.2333, allocations: 21.31 kB / 488.1 MB, free: 4.129 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004286/0.2337, allocations: 233.3 kB / 488.3 MB, free: 4.066 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002172/0.2339, allocations: 221.8 kB / 488.5 MB, free: 4.012 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000219/0.2342, allocations: 243.5 kB / 488.7 MB, free: 3.867 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005328/0.2347, allocations: 0.4902 MB / 489.2 MB, free: 3.762 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2347, allocations: 0 / 489.2 MB, free: 3.762 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2347, allocations: 4 kB / 489.2 MB, free: 3.758 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.423e-06/0.2347, allocations: 0 / 489.2 MB, free: 3.758 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.001065/0.2358, allocations: 0.692 MB / 489.9 MB, free: 3.219 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.14e-05/0.2358, allocations: 10.47 kB / 489.9 MB, free: 3.219 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005072/0.2364, allocations: 86.16 kB / 490 MB, free: 3.191 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005748/0.2369, allocations: 408.8 kB / 490.4 MB, free: 2.891 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.416e-05/0.237, allocations: 30.58 kB / 490.5 MB, free: 2.879 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001138/0.2371, allocations: 52.77 kB / 490.5 MB, free: 2.855 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009357/0.238, allocations: 0.672 MB / 491.2 MB, free: 2.543 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.993e-05/0.2381, allocations: 2.297 kB / 491.2 MB, free: 2.543 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.685e-05/0.2381, allocations: 15.69 kB / 491.2 MB, free: 2.531 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001719/0.2383, allocations: 51.95 kB / 491.3 MB, free: 2.523 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009602/0.2393, allocations: 0.6644 MB / 491.9 MB, free: 2.328 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003097/0.2424, allocations: 2.526 MB / 494.4 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004859/0.2429, allocations: 336.6 kB / 494.8 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002826/0.2432, allocations: 229.2 kB / 495 MB, free: 412 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.572e-05/0.2432, allocations: 7.828 kB / 495 MB, free: 408 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.891e-05/0.2432, allocations: 46.23 kB / 495 MB, free: 356 kB / 314.7 MB Notification: Performance of pre-optimization done (n=42): time 2.455e-06/0.2433, allocations: 3.938 kB / 495 MB, free: 352 kB / 314.7 MB Notification: Performance of matching and sorting (n=43): time 0.002015/0.2453, allocations: 1.349 MB / 496.4 MB, free: 15.63 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.867e-05/0.2453, allocations: 85.94 kB / 496.5 MB, free: 15.53 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000328/0.2457, allocations: 300.9 kB / 496.8 MB, free: 15.36 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.821e-05/0.2457, allocations: 31.7 kB / 496.8 MB, free: 15.33 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001568/0.2459, allocations: 252.1 kB / 497.1 MB, free: 15.12 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001156/0.246, allocations: 151 kB / 497.2 MB, free: 15 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.508e-05/0.246, allocations: 14.11 kB / 497.2 MB, free: 14.99 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.2462, allocations: 353.9 kB / 497.6 MB, free: 14.66 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00029/0.2465, allocations: 199.1 kB / 497.8 MB, free: 14.6 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000391/0.2469, allocations: 354.3 kB / 498.1 MB, free: 14.34 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007366/0.2476, allocations: 0.5995 MB / 498.7 MB, free: 13.97 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.2476, allocations: 1.031 kB / 498.7 MB, free: 13.97 MB / 330.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.000929/0.2485, allocations: 0.6317 MB / 499.3 MB, free: 13.72 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.2486, allocations: 9.766 kB / 499.3 MB, free: 13.72 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.2486, allocations: 8.969 kB / 499.4 MB, free: 13.71 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.815e-05/0.2486, allocations: 7.625 kB / 499.4 MB, free: 13.71 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004232/0.249, allocations: 113.9 kB / 499.5 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.554e-05/0.2491, allocations: 13.53 kB / 499.5 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002356/0.2493, allocations: 28.39 kB / 499.5 MB, free: 13.69 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.031e-05/0.2494, allocations: 22.53 kB / 499.5 MB, free: 13.68 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.000258/0.2496, allocations: 219.3 kB / 499.7 MB, free: 13.52 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.254e-05/0.2497, allocations: 36.47 kB / 499.8 MB, free: 13.5 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007919/0.2505, allocations: 497.7 kB / 0.4885 GB, free: 13.3 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.431e-05/0.2506, allocations: 12.05 kB / 0.4886 GB, free: 13.3 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.2506, allocations: 5 kB / 0.4886 GB, free: 13.29 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.2506, allocations: 6.906 kB / 0.4886 GB, free: 13.29 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001713/0.2523, allocations: 1.096 MB / 0.4896 GB, free: 12.64 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.2523, allocations: 1.062 kB / 0.4896 GB, free: 12.64 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003602/0.2527, allocations: 72.7 kB / 0.4897 GB, free: 12.62 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.2527, allocations: 3.844 kB / 0.4897 GB, free: 12.62 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.827e-05/0.2527, allocations: 10.66 kB / 0.4897 GB, free: 12.61 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.2528, allocations: 3.719 kB / 0.4897 GB, free: 12.61 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.2528, allocations: 0.9688 kB / 0.4897 GB, free: 12.61 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00106/0.2538, allocations: 0.8288 MB / 0.4905 GB, free: 12.11 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.253e-05/0.2539, allocations: 115.4 kB / 0.4906 GB, free: 11.99 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.399e-05/0.254, allocations: 12.28 kB / 0.4907 GB, free: 11.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002023/0.2542, allocations: 14.86 kB / 0.4907 GB, free: 11.98 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.446e-05/0.2542, allocations: 30.08 kB / 0.4907 GB, free: 11.96 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.827e-05/0.2543, allocations: 8 kB / 0.4907 GB, free: 11.96 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002146/0.2545, allocations: 210.7 kB / 0.4909 GB, free: 11.82 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2545, allocations: 0 / 0.4909 GB, free: 11.82 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005023/0.255, allocations: 114 kB / 0.491 GB, free: 11.8 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.0002214/0.2553, allocations: 142.5 kB / 0.4912 GB, free: 11.68 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007109/0.256, allocations: 490.1 kB / 0.4916 GB, free: 11.48 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.256, allocations: 448 / 0.4916 GB, free: 11.48 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003011/0.2563, allocations: 228.2 kB / 0.4918 GB, free: 11.38 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005342/0.2568, allocations: 62.02 kB / 0.4919 GB, free: 11.34 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00174/0.2586, allocations: 1.404 MB / 0.4933 GB, free: 10.35 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004405/0.259, allocations: 0.8655 MB / 0.4941 GB, free: 9.574 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001399/0.2592, allocations: 42.02 kB / 0.4942 GB, free: 9.559 MB / 330.7 MB Notification: Performance of SimCode: time 6.42e-07/0.2592, allocations: 0 / 0.4942 GB, free: 9.559 MB / 330.7 MB Notification: Performance of Templates: time 0.007709/0.2669, allocations: 5.444 MB / 0.4995 GB, free: 5.844 MB / 330.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron.makefile (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 & ./PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1)