Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.Units.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: translateModel(PowerSystems.Examples.Introductory.Units,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.Units") translateModel(PowerSystems.Examples.Introductory.Units,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.Units") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 112 kB / 17.68 MB, free: 5.332 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.001081/0.001081, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.324/1.324, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2399/0.2399, allocations: 37.99 MB / 309.8 MB, free: 5.977 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.001416/0.001416, allocations: 72.38 kB / 376.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2125/0.2139, allocations: 55.24 MB / 432 MB, free: 19.51 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.005656/0.2196, allocations: 6.1 MB / 438.1 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002575/0.2223, allocations: 1.995 MB / 440.1 MB, free: 11.38 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002291/0.2225, allocations: 23.88 kB / 440.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001406/0.2239, allocations: 0.6948 MB / 440.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005796/0.2245, allocations: 370.2 kB / 441.2 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000797/0.2253, allocations: 403 kB / 441.6 MB, free: 9.906 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007543/0.2261, allocations: 0.9433 MB / 442.5 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006003/0.2267, allocations: 496.1 kB / 443 MB, free: 8.477 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005276/0.2272, allocations: 438.3 kB / 443.4 MB, free: 8.047 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005153/0.2278, allocations: 0.5296 MB / 444 MB, free: 7.516 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.629e-05/0.2278, allocations: 56 kB / 444 MB, free: 7.461 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000351/0.2282, allocations: 235.6 kB / 444.2 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002435/0.2284, allocations: 419 kB / 444.7 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002961/0.2287, allocations: 429.9 kB / 445.1 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007033/0.2295, allocations: 1.02 MB / 446.1 MB, free: 5.375 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2295, allocations: 0 / 446.1 MB, free: 5.375 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2295, allocations: 0 / 446.1 MB, free: 5.375 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.2295, allocations: 0 / 446.1 MB, free: 5.375 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.001316/0.2308, allocations: 1.068 MB / 447.2 MB, free: 4.254 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.621e-05/0.2308, allocations: 11.89 kB / 447.2 MB, free: 4.242 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000591/0.2314, allocations: 139.8 kB / 447.3 MB, free: 4.105 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007864/0.2322, allocations: 0.5439 MB / 447.9 MB, free: 3.52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.14e-05/0.2323, allocations: 54.38 kB / 447.9 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.964e-05/0.2324, allocations: 76.12 kB / 448 MB, free: 3.391 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001082/0.2335, allocations: 1.141 MB / 449.1 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.534e-05/0.2335, allocations: 7.938 kB / 449.1 MB, free: 2.137 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.611e-05/0.2336, allocations: 32 kB / 449.2 MB, free: 2.105 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.332e-05/0.2336, allocations: 57.91 kB / 449.2 MB, free: 2.047 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009651/0.2346, allocations: 0.8546 MB / 450.1 MB, free: 1.195 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004424/0.239, allocations: 5.04 MB / 455.1 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006323/0.2397, allocations: 436.4 kB / 455.5 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000276/0.2399, allocations: 213.7 kB / 455.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.205e-05/0.24, allocations: 11.98 kB / 455.8 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.829e-05/0.24, allocations: 38.56 kB / 455.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 1.813e-06/0.24, allocations: 0 / 455.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=44): time 0.001646/0.2417, allocations: 1.059 MB / 456.9 MB, free: 10.13 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.777e-05/0.2418, allocations: 93.23 kB / 456.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000461/0.2422, allocations: 0.4899 MB / 457.4 MB, free: 9.52 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.057e-05/0.2423, allocations: 37.7 kB / 457.5 MB, free: 9.477 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002647/0.2425, allocations: 445.8 kB / 457.9 MB, free: 9.035 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001157/0.2427, allocations: 157.8 kB / 458.1 MB, free: 8.879 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001844/0.2429, allocations: 154.5 kB / 458.2 MB, free: 8.723 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.243, allocations: 362.8 kB / 458.6 MB, free: 8.359 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003377/0.2434, allocations: 241.8 kB / 458.8 MB, free: 8.121 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005797/0.2439, allocations: 0.617 MB / 459.4 MB, free: 7.324 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001028/0.245, allocations: 0.9379 MB / 460.4 MB, free: 6.203 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.245, allocations: 4 kB / 460.4 MB, free: 6.199 MB / 334.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001223/0.2462, allocations: 0.896 MB / 461.3 MB, free: 5.297 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.2463, allocations: 12.16 kB / 461.3 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-05/0.2463, allocations: 20 kB / 461.3 MB, free: 5.266 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.334e-05/0.2463, allocations: 16 kB / 461.3 MB, free: 5.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006874/0.247, allocations: 215.7 kB / 461.5 MB, free: 5.039 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.496e-05/0.247, allocations: 35.8 kB / 461.6 MB, free: 5.004 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003943/0.2474, allocations: 43.97 kB / 461.6 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.929e-05/0.2475, allocations: 47.98 kB / 461.6 MB, free: 4.914 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (99): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000328/0.2478, allocations: 309.3 kB / 461.9 MB, free: 4.602 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.765e-05/0.2479, allocations: 51.34 kB / 462 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008751/0.2488, allocations: 0.5602 MB / 462.6 MB, free: 3.988 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.108e-05/0.2488, allocations: 8 kB / 462.6 MB, free: 3.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.2488, allocations: 0 / 462.6 MB, free: 3.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-05/0.2489, allocations: 7.969 kB / 462.6 MB, free: 3.973 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001913/0.2508, allocations: 1.335 MB / 463.9 MB, free: 2.559 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.2508, allocations: 0 / 463.9 MB, free: 2.559 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004241/0.2512, allocations: 108.1 kB / 464 MB, free: 2.453 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/0.2512, allocations: 19.88 kB / 464 MB, free: 2.434 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.777e-05/0.2513, allocations: 11.98 kB / 464 MB, free: 2.422 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.2513, allocations: 4 kB / 464 MB, free: 2.418 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.2513, allocations: 7.938 kB / 464.1 MB, free: 2.41 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007237/0.252, allocations: 0.6418 MB / 464.7 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001099/0.2521, allocations: 124.5 kB / 464.8 MB, free: 1.578 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.901e-05/0.2522, allocations: 19.92 kB / 464.8 MB, free: 1.559 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002519/0.2525, allocations: 19.98 kB / 464.9 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.881e-05/0.2525, allocations: 35.95 kB / 464.9 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.755e-05/0.2526, allocations: 19.94 kB / 464.9 MB, free: 1.484 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003267/0.2529, allocations: 330.8 kB / 465.2 MB, free: 1.164 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2529, allocations: 0 / 465.2 MB, free: 1.164 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005984/0.2535, allocations: 160 kB / 465.4 MB, free: 1.008 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001236/0.2537, allocations: 107.5 kB / 465.5 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008708/0.2545, allocations: 0.6182 MB / 466.1 MB, free: 284 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.2545, allocations: 0 / 466.1 MB, free: 284 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003154/0.2549, allocations: 243.6 kB / 466.4 MB, free: 40 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006583/0.2555, allocations: 110.5 kB / 466.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002007/0.2576, allocations: 1.361 MB / 467.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005594/0.2581, allocations: 0.9996 MB / 468.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004714/0.2586, allocations: 225 kB / 469 MB, free: 13.26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.2588, allocations: 51.44 kB / 469.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2588, allocations: 7.938 kB / 469.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of Templates: time 0.0102/0.269, allocations: 5.544 MB / 474.6 MB, free: 7.676 MB / 350.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Introductory.Units.makefile (rm -f PowerSystems_PowerSystems.Examples.Introductory.Units.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.Units.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.Units.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.Units.sim & ./PowerSystems_PowerSystems.Examples.Introductory.Units -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Introductory.Units.pipe 2>&1)