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: "" <> buildModelFMU(PowerSysPro.Examples.QfURegulation,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_QfURegulation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.QfURegulation,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_QfURegulation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001504/0.001504, allocations: 106.3 kB / 16.45 MB, free: 6.449 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.001723/0.001723, allocations: 192.2 kB / 17.39 MB, free: 5.668 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.272/1.272, allocations: 222.9 MB / 241.1 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04473/0.04473, allocations: 8.1 MB / 299.3 MB, free: 6.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001084/0.001085, allocations: 59.89 kB / 414 MB, free: 22.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08423/0.08533, allocations: 51.52 MB / 465.5 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.QfURegulation): time 0.002973/0.08833, allocations: 2.051 MB / 467.5 MB, free: 484 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002119/0.09047, allocations: 1.633 MB / 469.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001092/0.0906, allocations: 4 kB / 469.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000398/0.09102, allocations: 139.2 kB / 469.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006293/0.09166, allocations: 234.7 kB / 469.6 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001977/0.09365, allocations: 1.221 MB / 470.8 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004325/0.09409, allocations: 374.5 kB / 471.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000193/0.0943, allocations: 118.5 kB / 471.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002344/0.09454, allocations: 167.5 kB / 471.4 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002648/0.09481, allocations: 207.2 kB / 471.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.108e-05/0.09487, allocations: 32 kB / 471.7 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004274/0.09531, allocations: 283.8 kB / 471.9 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001045/0.09542, allocations: 95.59 kB / 472 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001613/0.09559, allocations: 179.1 kB / 472.2 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006054/0.0962, allocations: 0.5424 MB / 472.7 MB, free: 11.26 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.09622, allocations: 0 / 472.7 MB, free: 11.26 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.09622, allocations: 0 / 472.7 MB, free: 11.26 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.09623, allocations: 0 / 472.7 MB, free: 11.26 MB / 350.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.00359/0.09983, allocations: 1.111 MB / 473.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.09988, allocations: 15.89 kB / 473.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.265e-05/0.09995, allocations: 70.72 kB / 473.9 MB, free: 9.996 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.554e-05/0.1, allocations: 36.56 kB / 474 MB, free: 9.961 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000335/0.1004, allocations: 296.1 kB / 474.3 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001929/0.1006, allocations: 100.5 kB / 474.4 MB, free: 9.523 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.008e-05/0.1006, allocations: 32.38 kB / 474.4 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001441/0.1021, allocations: 0.7133 MB / 475.1 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.1021, allocations: 4 kB / 475.1 MB, free: 8.754 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.92e-05/0.1022, allocations: 16 kB / 475.1 MB, free: 8.738 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.1022, allocations: 8 kB / 475.1 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009054/0.1031, allocations: 445.5 kB / 475.6 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00202/0.1051, allocations: 1.538 MB / 477.1 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001451/0.1066, allocations: 0.696 MB / 477.8 MB, free: 5.883 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005748/0.1072, allocations: 330.4 kB / 478.1 MB, free: 5.551 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001488/0.1073, allocations: 89.25 kB / 478.2 MB, free: 5.445 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003958/0.1077, allocations: 276.8 kB / 478.5 MB, free: 5.156 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.804e-06/0.1078, allocations: 4 kB / 478.5 MB, free: 5.152 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.003367/0.1111, allocations: 1.218 MB / 479.7 MB, free: 3.906 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.998e-05/0.1112, allocations: 148.5 kB / 479.8 MB, free: 3.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002313/0.1115, allocations: 227.9 kB / 480.1 MB, free: 3.496 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.395e-05/0.1115, allocations: 37.7 kB / 480.1 MB, free: 3.453 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.507e-05/0.1116, allocations: 148.8 kB / 480.3 MB, free: 3.305 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.698e-05/0.1117, allocations: 118.4 kB / 480.4 MB, free: 3.188 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001456/0.1119, allocations: 94.23 kB / 480.5 MB, free: 3.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.112, allocations: 334.8 kB / 480.8 MB, free: 2.754 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003024/0.1123, allocations: 209 kB / 481 MB, free: 2.551 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003805/0.1127, allocations: 330.9 kB / 481.3 MB, free: 2.176 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006944/0.1134, allocations: 0.5452 MB / 481.9 MB, free: 1.586 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.1134, allocations: 0 / 481.9 MB, free: 1.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001478/0.1149, allocations: 0.7903 MB / 482.6 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.1149, allocations: 8 kB / 482.7 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.115, allocations: 4 kB / 482.7 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002034/0.117, allocations: 468.3 kB / 483.1 MB, free: 320 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003116/0.1173, allocations: 87.83 kB / 483.2 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001405/0.1187, allocations: 0.9114 MB / 484.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003057/0.1191, allocations: 43.58 kB / 484.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.895e-05/0.1191, allocations: 20 kB / 484.2 MB, free: 15.23 MB / 366.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.0001847/0.1193, allocations: 170.5 kB / 484.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006226/0.1199, allocations: 253.1 kB / 484.6 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001036/0.121, allocations: 0.5788 MB / 485.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.121, allocations: 4 kB / 485.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.121, allocations: 4 kB / 485.2 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.121, allocations: 3.984 kB / 485.2 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002373/0.1234, allocations: 1.377 MB / 486.6 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.1234, allocations: 4 kB / 486.6 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003456/0.1238, allocations: 83.88 kB / 486.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001843/0.1256, allocations: 457 kB / 487.1 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.478e-05/0.1257, allocations: 15.94 kB / 487.1 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001315/0.127, allocations: 0.9113 MB / 488 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.127, allocations: 7.984 kB / 488 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002349/0.1293, allocations: 0.9937 MB / 489 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.002e-05/0.1294, allocations: 108.6 kB / 489.1 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.448e-05/0.1295, allocations: 15.94 kB / 489.1 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003863/0.1299, allocations: 47.95 kB / 489.2 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.26e-05/0.13, allocations: 23.97 kB / 489.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.816e-05/0.13, allocations: 16 kB / 489.2 MB, free: 10.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001478/0.1302, allocations: 167.1 kB / 489.4 MB, free: 9.855 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1302, allocations: 4 kB / 489.4 MB, free: 9.852 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004224/0.1306, allocations: 107.9 kB / 489.5 MB, free: 9.746 MB / 366.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.002687/0.1333, allocations: 1.576 MB / 491.1 MB, free: 8.129 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001725/0.135, allocations: 0.702 MB / 491.8 MB, free: 7.426 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.135, allocations: 8.312 kB / 491.8 MB, free: 7.418 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009847/0.136, allocations: 319.8 kB / 492.1 MB, free: 7.105 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006771/0.1367, allocations: 156.6 kB / 492.2 MB, free: 6.949 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007017/0.1438, allocations: 4.232 MB / 496.5 MB, free: 2.531 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004187/0.1442, allocations: 0.7849 MB / 497.3 MB, free: 1.715 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001535/0.1444, allocations: 46.94 kB / 497.3 MB, free: 1.668 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001759/0.1445, allocations: 95.41 kB / 497.4 MB, free: 1.574 MB / 366.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1446, allocations: 4 kB / 497.4 MB, free: 1.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03009/0.1747, allocations: 8.936 MB / 0.4945 GB, free: 8.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.6/10.77, allocations: 8.406 kB / 0.4945 GB, free: 8.723 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_QfURegulation_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_QfURegulation.fmu > PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe 2>&1)