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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 186.9 kB / 16.68 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 222.9 MB / 240.3 MB, free: 11.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 95.75 kB / 290.6 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05056/0.05056, allocations: 8.084 MB / 348.8 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001142, allocations: 47.58 kB / 411.1 MB, free: 57.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08195/0.08314, allocations: 51.53 MB / 462.6 MB, free: 6.07 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.QfURegulation): time 0.003182/0.08638, allocations: 2.075 MB / 464.7 MB, free: 3.992 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002085/0.0885, allocations: 1.637 MB / 466.3 MB, free: 2.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002232/0.08875, allocations: 7.938 kB / 466.3 MB, free: 2.332 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000415/0.08922, allocations: 111.6 kB / 466.4 MB, free: 2.223 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005853/0.08982, allocations: 215 kB / 466.6 MB, free: 2.012 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001726/0.09156, allocations: 1.202 MB / 467.8 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004924/0.09206, allocations: 366.6 kB / 468.2 MB, free: 460 kB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002021/0.09227, allocations: 99.8 kB / 468.3 MB, free: 356 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003011/0.09258, allocations: 151.5 kB / 468.5 MB, free: 204 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002493/0.09285, allocations: 195.2 kB / 468.6 MB, free: 8 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.929e-05/0.09293, allocations: 20.05 kB / 468.7 MB, free: 15.98 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005601/0.0935, allocations: 275.7 kB / 468.9 MB, free: 15.72 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.678e-05/0.09361, allocations: 75.67 kB / 469 MB, free: 15.64 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001877/0.09381, allocations: 175.1 kB / 469.2 MB, free: 15.47 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008546/0.09467, allocations: 0.5454 MB / 469.7 MB, free: 14.93 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.09469, allocations: 0 / 469.7 MB, free: 14.93 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.0947, allocations: 0 / 469.7 MB, free: 14.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.36e-05/0.09472, allocations: 0 / 469.7 MB, free: 14.93 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.004205/0.09893, allocations: 1.111 MB / 470.8 MB, free: 13.76 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.09898, allocations: 12.03 kB / 470.8 MB, free: 13.75 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001225/0.09911, allocations: 40.47 kB / 470.9 MB, free: 13.71 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004003/0.09952, allocations: 291.8 kB / 471.2 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002325/0.09976, allocations: 100.5 kB / 471.3 MB, free: 13.28 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.674e-05/0.09983, allocations: 36.31 kB / 471.3 MB, free: 13.24 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001699/0.1015, allocations: 0.7175 MB / 472 MB, free: 12.5 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.1016, allocations: 3.938 kB / 472 MB, free: 12.5 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.79e-05/0.1016, allocations: 16 kB / 472 MB, free: 12.48 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.1016, allocations: 4 kB / 472 MB, free: 12.48 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001074/0.1027, allocations: 449.5 kB / 472.5 MB, free: 12.04 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002341/0.1051, allocations: 1.538 MB / 474 MB, free: 10.36 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001596/0.1067, allocations: 0.7005 MB / 474.7 MB, free: 9.617 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006439/0.1074, allocations: 330.4 kB / 475 MB, free: 9.285 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001595/0.1075, allocations: 93.23 kB / 475.1 MB, free: 9.176 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004344/0.108, allocations: 270 kB / 475.4 MB, free: 8.895 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 3.456e-06/0.108, allocations: 0 / 475.4 MB, free: 8.895 MB / 314.7 MB Notification: Performance of matching and sorting (n=43): time 0.003964/0.112, allocations: 1.224 MB / 476.6 MB, free: 7.645 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/0.1121, allocations: 144.5 kB / 476.8 MB, free: 7.473 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002569/0.1124, allocations: 227.9 kB / 477 MB, free: 7.234 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.286e-05/0.1124, allocations: 37.7 kB / 477 MB, free: 7.191 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/0.1125, allocations: 152.7 kB / 477.2 MB, free: 7.039 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.471e-05/0.1126, allocations: 106.5 kB / 477.3 MB, free: 6.934 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001571/0.1128, allocations: 98.23 kB / 477.4 MB, free: 6.832 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.113, allocations: 338.8 kB / 477.7 MB, free: 6.492 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003551/0.1133, allocations: 205 kB / 477.9 MB, free: 6.289 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003857/0.1137, allocations: 328.5 kB / 478.2 MB, free: 5.918 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007525/0.1145, allocations: 0.5452 MB / 478.8 MB, free: 5.328 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.1145, allocations: 0 / 478.8 MB, free: 5.328 MB / 314.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001663/0.1162, allocations: 0.7901 MB / 479.6 MB, free: 4.527 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.1162, allocations: 12.12 kB / 479.6 MB, free: 4.516 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.1162, allocations: 4 kB / 479.6 MB, free: 4.512 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002337/0.1185, allocations: 464.3 kB / 480 MB, free: 4.055 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003283/0.1189, allocations: 91.83 kB / 480.1 MB, free: 3.965 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001536/0.1204, allocations: 0.9062 MB / 481 MB, free: 3.035 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003738/0.1208, allocations: 55.45 kB / 481.1 MB, free: 2.98 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.982e-05/0.1209, allocations: 20 kB / 481.1 MB, free: 2.961 MB / 314.7 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.0003404/0.1212, allocations: 173.6 kB / 481.3 MB, free: 2.781 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008933/0.1221, allocations: 245.2 kB / 481.5 MB, free: 2.535 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001139/0.1233, allocations: 0.5799 MB / 482.1 MB, free: 1.945 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.1233, allocations: 4 kB / 482.1 MB, free: 1.941 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.1233, allocations: 4 kB / 482.1 MB, free: 1.938 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.1233, allocations: 0 / 482.1 MB, free: 1.938 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002789/0.1261, allocations: 1.377 MB / 483.5 MB, free: 0.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.082e-06/0.1262, allocations: 0 / 483.5 MB, free: 0.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003972/0.1266, allocations: 87.88 kB / 483.6 MB, free: 424 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1997/0.3263, allocations: 454.4 kB / 484 MB, free: 28.86 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001778/0.3265, allocations: 11.08 kB / 484 MB, free: 28.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001805/0.3283, allocations: 0.9072 MB / 484.9 MB, free: 28.34 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.3284, allocations: 1 kB / 484.9 MB, free: 28.34 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004101/0.3325, allocations: 1.936 MB / 486.9 MB, free: 27.32 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.658e-05/0.3326, allocations: 116.8 kB / 487 MB, free: 27.21 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.515e-05/0.3327, allocations: 6.906 kB / 487 MB, free: 27.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004659/0.3331, allocations: 44.5 kB / 487 MB, free: 27.2 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/0.3333, allocations: 23.55 kB / 487 MB, free: 27.2 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.686e-05/0.3333, allocations: 19.66 kB / 487.1 MB, free: 27.2 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001801/0.3335, allocations: 171.3 kB / 487.2 MB, free: 27.1 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3335, allocations: 1.375 kB / 487.2 MB, free: 27.1 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006682/0.3342, allocations: 111.4 kB / 487.3 MB, free: 27.08 MB / 314.7 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.000266/0.3345, allocations: 136.7 kB / 487.5 MB, free: 26.98 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002108/0.3366, allocations: 0.6881 MB / 488.2 MB, free: 26.77 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.3366, allocations: 0 / 488.2 MB, free: 26.77 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001174/0.3378, allocations: 324.4 kB / 488.5 MB, free: 26.67 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007772/0.3386, allocations: 158.5 kB / 488.6 MB, free: 26.62 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002867/0.3414, allocations: 1.239 MB / 489.9 MB, free: 25.91 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003514/0.3418, allocations: 0.7898 MB / 490.7 MB, free: 25.21 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002068/0.342, allocations: 43.69 kB / 490.7 MB, free: 25.21 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/0.3421, allocations: 34.09 kB / 490.7 MB, free: 25.2 MB / 314.7 MB Notification: Performance of SimCode: time 9.42e-07/0.3422, allocations: 0 / 490.7 MB, free: 25.2 MB / 314.7 MB Notification: Performance of Templates: time 0.01294/0.3551, allocations: 5.727 MB / 496.5 MB, free: 24.46 MB / 314.7 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)