Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.VariableLoad.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.VariableLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.VariableLoad") translateModel(PowerSysPro.Examples.VariableLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.VariableLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001031/0.001031, 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.305/1.305, allocations: 222.9 MB / 240.3 MB, free: 10.98 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.0009422/0.0009422, allocations: 105.2 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.04889/0.04889, allocations: 8.09 MB / 348.8 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009619/0.0009621, allocations: 51.05 kB / 411.1 MB, free: 57.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09871/0.09968, allocations: 51.52 MB / 462.6 MB, free: 6.062 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableLoad): time 0.003358/0.1031, allocations: 2.513 MB / 465.1 MB, free: 3.543 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002989/0.1061, allocations: 2.516 MB / 467.6 MB, free: 1.004 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001566/0.1063, allocations: 4 kB / 467.6 MB, free: 1 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004987/0.1068, allocations: 147.4 kB / 467.8 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005603/0.1074, allocations: 262.8 kB / 468 MB, free: 0.5977 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001927/0.1093, allocations: 1.253 MB / 469.3 MB, free: 15.34 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004986/0.1099, allocations: 406.2 kB / 469.7 MB, free: 14.95 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002119/0.1101, allocations: 107.9 kB / 469.8 MB, free: 14.84 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001639/0.1102, allocations: 159.3 kB / 469.9 MB, free: 14.68 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002545/0.1105, allocations: 199.1 kB / 470.1 MB, free: 14.49 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.046e-05/0.1106, allocations: 24 kB / 470.2 MB, free: 14.46 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005818/0.1112, allocations: 331.7 kB / 470.5 MB, free: 14.14 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001266/0.1113, allocations: 79.67 kB / 470.6 MB, free: 14.06 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001827/0.1115, allocations: 179 kB / 470.7 MB, free: 13.89 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007934/0.1123, allocations: 0.6193 MB / 471.4 MB, free: 13.27 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.1123, allocations: 0 / 471.4 MB, free: 13.27 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1123, allocations: 4 kB / 471.4 MB, free: 13.26 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.1123, allocations: 0 / 471.4 MB, free: 13.26 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: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.004364/0.1167, allocations: 1.22 MB / 472.6 MB, free: 11.99 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.1168, allocations: 12.02 kB / 472.6 MB, free: 11.98 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001207/0.1169, allocations: 48.47 kB / 472.6 MB, free: 11.93 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004521/0.1173, allocations: 323.5 kB / 473 MB, free: 11.58 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.434e-05/0.1174, allocations: 54.83 kB / 473 MB, free: 11.52 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.269e-05/0.1175, allocations: 32.12 kB / 473 MB, free: 11.49 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000698/0.1182, allocations: 448.4 kB / 473.5 MB, free: 11.04 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.1182, allocations: 0 / 473.5 MB, free: 11.04 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.231e-05/0.1183, allocations: 12 kB / 473.5 MB, free: 11.02 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.1183, allocations: 8 kB / 473.5 MB, free: 11.02 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005934/0.1189, allocations: 382.1 kB / 473.9 MB, free: 10.64 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002365/0.1212, allocations: 1.75 MB / 475.6 MB, free: 8.719 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008945/0.1222, allocations: 495 kB / 476.1 MB, free: 8.223 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003616/0.1225, allocations: 248.8 kB / 476.4 MB, free: 7.977 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.797e-05/0.1226, allocations: 15.98 kB / 476.4 MB, free: 7.961 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000631/0.1233, allocations: 326.8 kB / 476.7 MB, free: 7.629 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 1.704e-06/0.1233, allocations: 4 kB / 476.7 MB, free: 7.625 MB / 314.7 MB Notification: Performance of matching and sorting (n=43): time 0.004251/0.1275, allocations: 1.35 MB / 478 MB, free: 6.246 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.079e-05/0.1276, allocations: 114.8 kB / 478.2 MB, free: 6.109 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003123/0.1279, allocations: 275 kB / 478.4 MB, free: 5.832 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.396e-05/0.128, allocations: 37.7 kB / 478.5 MB, free: 5.789 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.1281, allocations: 168.8 kB / 478.6 MB, free: 5.617 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001088/0.1282, allocations: 145.9 kB / 478.8 MB, free: 5.473 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000171/0.1284, allocations: 98.14 kB / 478.9 MB, free: 5.371 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.1285, allocations: 346.8 kB / 479.2 MB, free: 5.023 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003883/0.1289, allocations: 261 kB / 479.5 MB, free: 4.766 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004237/0.1293, allocations: 304.7 kB / 479.8 MB, free: 4.461 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008124/0.1302, allocations: 0.5586 MB / 480.3 MB, free: 3.898 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1302, allocations: 0 / 480.3 MB, free: 3.898 MB / 314.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.00196/0.1321, allocations: 0.9172 MB / 481.2 MB, free: 2.973 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.1322, allocations: 10.75 kB / 481.2 MB, free: 2.965 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.1322, allocations: 0 / 481.2 MB, free: 2.965 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002751/0.1349, allocations: 0.6133 MB / 481.9 MB, free: 2.348 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002895/0.1352, allocations: 71.91 kB / 481.9 MB, free: 2.277 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001651/0.1369, allocations: 1.074 MB / 483 MB, free: 1.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003539/0.1373, allocations: 47.52 kB / 483 MB, free: 1.133 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.299e-05/0.1373, allocations: 20 kB / 483.1 MB, free: 1.113 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (46): * Single equations (assignments): 45 * 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,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0002128/0.1375, allocations: 162.4 kB / 483.2 MB, free: 0.9453 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.355e-05/0.1376, allocations: 39.56 kB / 483.3 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00137/0.139, allocations: 0.774 MB / 484 MB, free: 124 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-05/0.139, allocations: 7.984 kB / 484 MB, free: 116 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.139, allocations: 11.94 kB / 484.1 MB, free: 104 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.1391, allocations: 0 / 484.1 MB, free: 104 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1956/0.3347, allocations: 0.5437 MB / 484.6 MB, free: 29.05 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.3347, allocations: 2.156 kB / 484.6 MB, free: 29.05 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000221/0.3349, allocations: 50.91 kB / 484.7 MB, free: 29.05 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002756/0.3377, allocations: 0.5921 MB / 485.2 MB, free: 28.99 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.647e-05/0.3378, allocations: 8.625 kB / 485.3 MB, free: 28.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001439/0.3392, allocations: 1.069 MB / 486.3 MB, free: 28.21 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.3392, allocations: 5.094 kB / 486.3 MB, free: 28.21 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001699/0.3409, allocations: 1.655 MB / 488 MB, free: 27.08 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.165e-05/0.341, allocations: 115.2 kB / 488.1 MB, free: 26.96 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.421e-05/0.3411, allocations: 6.516 kB / 488.1 MB, free: 26.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003012/0.3414, allocations: 24.48 kB / 488.1 MB, free: 26.95 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.326e-05/0.3415, allocations: 32.55 kB / 488.2 MB, free: 26.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.835e-05/0.3415, allocations: 16.17 kB / 488.2 MB, free: 26.95 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002314/0.3418, allocations: 206.8 kB / 488.4 MB, free: 26.84 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.3418, allocations: 0 / 488.4 MB, free: 26.84 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008788/0.3427, allocations: 136.8 kB / 488.5 MB, free: 26.81 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (33): * Single equations (assignments): 32 * 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,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00139/0.3441, allocations: 439.8 kB / 488.9 MB, free: 26.67 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002654/0.3467, allocations: 0.7043 MB / 489.6 MB, free: 26.41 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/0.3468, allocations: 0 / 489.6 MB, free: 26.41 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001755/0.3485, allocations: 395.1 kB / 490 MB, free: 26.29 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006027/0.3491, allocations: 49.2 kB / 490.1 MB, free: 26.26 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002424/0.3516, allocations: 1.174 MB / 491.2 MB, free: 25.48 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004027/0.352, allocations: 0.7949 MB / 492 MB, free: 24.79 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003318/0.3524, allocations: 58.75 kB / 492.1 MB, free: 24.77 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001508/0.3525, allocations: 36.94 kB / 492.1 MB, free: 24.76 MB / 314.7 MB Notification: Performance of SimCode: time 1.263e-06/0.3525, allocations: 0 / 492.1 MB, free: 24.76 MB / 314.7 MB Notification: Performance of Templates: time 0.02069/0.3732, allocations: 7.937 MB / 0.4884 GB, free: 22.64 MB / 314.7 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.VariableLoad.makefile (rm -f PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.VariableLoad.sim & ./PowerSysPro_PowerSysPro.Examples.VariableLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe 2>&1)