Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.QfURegulation.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(PowerSysPro.Examples.QfURegulation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.QfURegulation") translateModel(PowerSysPro.Examples.QfURegulation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.QfURegulation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 102.2 kB / 16.57 MB, free: 6.262 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.001086/0.001086, allocations: 193.6 kB / 17.49 MB, free: 5.875 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.312/1.312, allocations: 222.9 MB / 241.2 MB, free: 15.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05051/0.05051, allocations: 8.092 MB / 299.4 MB, free: 6.992 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 55.91 kB / 361.7 MB, free: 8.664 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2405/0.2418, allocations: 51.51 MB / 413.2 MB, free: 25.88 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.QfURegulation): time 0.002775/0.2446, allocations: 2.081 MB / 415.3 MB, free: 23.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001884/0.2465, allocations: 1.629 MB / 416.9 MB, free: 22.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001025/0.2467, allocations: 4 kB / 416.9 MB, free: 22.15 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003431/0.247, allocations: 123.5 kB / 417 MB, free: 22.03 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004803/0.2475, allocations: 211 kB / 417.2 MB, free: 21.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001704/0.2492, allocations: 1.202 MB / 418.4 MB, free: 20.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003605/0.2496, allocations: 354.6 kB / 418.8 MB, free: 20.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001646/0.2498, allocations: 101.4 kB / 418.9 MB, free: 20.17 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002048/0.25, allocations: 155.5 kB / 419 MB, free: 20.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002224/0.2502, allocations: 187.2 kB / 419.2 MB, free: 19.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.884e-05/0.2503, allocations: 24 kB / 419.2 MB, free: 19.81 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003962/0.2507, allocations: 275.8 kB / 419.5 MB, free: 19.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.836e-05/0.2508, allocations: 79.67 kB / 419.6 MB, free: 19.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001428/0.2509, allocations: 167.2 kB / 419.8 MB, free: 19.3 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000348/0.2513, allocations: 403.1 kB / 420.1 MB, free: 18.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2513, allocations: 0 / 420.1 MB, free: 18.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2513, allocations: 4 kB / 420.2 MB, free: 18.9 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.2513, allocations: 0 / 420.2 MB, free: 18.9 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.003778/0.2551, allocations: 1.118 MB / 421.3 MB, free: 17.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/0.2551, allocations: 11.97 kB / 421.3 MB, free: 17.72 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00012/0.2553, allocations: 36.56 kB / 421.3 MB, free: 17.69 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000378/0.2557, allocations: 287.7 kB / 421.6 MB, free: 17.37 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002241/0.2559, allocations: 108.5 kB / 421.7 MB, free: 17.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.298e-05/0.2559, allocations: 32.38 kB / 421.7 MB, free: 17.22 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001503/0.2575, allocations: 0.7174 MB / 422.5 MB, free: 16.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.2575, allocations: 7.938 kB / 422.5 MB, free: 16.47 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.313e-05/0.2575, allocations: 12 kB / 422.5 MB, free: 16.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-06/0.2576, allocations: 8 kB / 422.5 MB, free: 16.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009041/0.2585, allocations: 457.4 kB / 422.9 MB, free: 16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001777/0.2602, allocations: 1.538 MB / 424.5 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001362/0.2616, allocations: 0.7062 MB / 425.2 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005349/0.2622, allocations: 326.6 kB / 425.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001329/0.2623, allocations: 97.25 kB / 425.6 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000354/0.2627, allocations: 265.5 kB / 425.8 MB, free: 12.87 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.694e-06/0.2627, allocations: 0 / 425.8 MB, free: 12.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=43): time 0.003439/0.2661, allocations: 1.22 MB / 427.1 MB, free: 11.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.58e-05/0.2662, allocations: 144.5 kB / 427.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001952/0.2664, allocations: 228 kB / 427.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.245e-05/0.2665, allocations: 37.7 kB / 427.5 MB, free: 11.17 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.047e-05/0.2665, allocations: 156.7 kB / 427.6 MB, free: 11.01 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.795e-05/0.2666, allocations: 114.5 kB / 427.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/0.2668, allocations: 98.17 kB / 427.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.537e-05/0.2668, allocations: 334.8 kB / 428.2 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002747/0.2671, allocations: 205 kB / 428.4 MB, free: 10.26 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003196/0.2674, allocations: 332.5 kB / 428.7 MB, free: 9.883 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000602/0.268, allocations: 0.5491 MB / 429.2 MB, free: 9.289 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.2681, allocations: 4 kB / 429.2 MB, free: 9.285 MB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001405/0.2695, allocations: 0.7903 MB / 430 MB, free: 8.484 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.2695, allocations: 8 kB / 430 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.2695, allocations: 4 kB / 430 MB, free: 8.473 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002153/0.2717, allocations: 460.4 kB / 430.5 MB, free: 8.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003191/0.272, allocations: 91.83 kB / 430.6 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001343/0.2733, allocations: 0.91 MB / 431.5 MB, free: 6.996 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003466/0.2737, allocations: 55.45 kB / 431.5 MB, free: 6.941 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.721e-05/0.2738, allocations: 20 kB / 431.6 MB, free: 6.922 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 (varLoad.degradedMode,$PRE.varLoad.degradedMode,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(7,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001884/0.2739, allocations: 161.7 kB / 431.7 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006237/0.2746, allocations: 249.3 kB / 432 MB, free: 6.504 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001014/0.2756, allocations: 0.5863 MB / 432.5 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.2756, allocations: 8 kB / 432.6 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.2756, allocations: 4 kB / 432.6 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.211e-06/0.2756, allocations: 3.984 kB / 432.6 MB, free: 5.891 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002231/0.2779, allocations: 1.362 MB / 433.9 MB, free: 4.469 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.2779, allocations: 0 / 433.9 MB, free: 4.469 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003536/0.2783, allocations: 83.88 kB / 434 MB, free: 4.387 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002001/0.2803, allocations: 464.2 kB / 434.5 MB, free: 3.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.312e-05/0.2803, allocations: 8 kB / 434.5 MB, free: 3.922 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001331/0.2817, allocations: 0.9114 MB / 435.4 MB, free: 2.984 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.2817, allocations: 0 / 435.4 MB, free: 2.984 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002439/0.2841, allocations: 1.004 MB / 436.4 MB, free: 1.949 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.411e-05/0.2842, allocations: 116.7 kB / 436.5 MB, free: 1.816 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.05e-05/0.2843, allocations: 12 kB / 436.5 MB, free: 1.805 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004244/0.2847, allocations: 47.89 kB / 436.6 MB, free: 1.758 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.645e-05/0.2848, allocations: 19.97 kB / 436.6 MB, free: 1.738 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.744e-05/0.2849, allocations: 16 kB / 436.6 MB, free: 1.723 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001481/0.285, allocations: 167.1 kB / 436.8 MB, free: 1.559 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.285, allocations: 0 / 436.8 MB, free: 1.559 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004921/0.2855, allocations: 115.8 kB / 436.9 MB, free: 1.445 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,varLoad.degradedMode) * Number of discrete states: 1 (varLoad.degradedMode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(7,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002295/0.2858, allocations: 127.2 kB / 437 MB, free: 1.309 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001809/0.2876, allocations: 0.6822 MB / 437.7 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.2876, allocations: 0 / 437.7 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001092/0.2887, allocations: 332.5 kB / 438 MB, free: 312 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007528/0.2895, allocations: 169.2 kB / 438.2 MB, free: 140 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002422/0.2919, allocations: 0.9778 MB / 439.1 MB, free: 15.12 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003575/0.2923, allocations: 0.7813 MB / 439.9 MB, free: 14.32 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001176/0.2924, allocations: 39.42 kB / 440 MB, free: 14.28 MB / 318.1 MB Notification: Performance of SimCode: time 2.916e-06/0.2924, allocations: 4 kB / 440 MB, free: 14.27 MB / 318.1 MB Notification: Performance of Templates: time 0.008535/0.301, allocations: 5.826 MB / 445.8 MB, free: 8.434 MB / 318.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.QfURegulation.makefile (rm -f PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.QfURegulation.sim & ./PowerSysPro_PowerSysPro.Examples.QfURegulation -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe 2>&1)