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.001582/0.001582, allocations: 103.5 kB / 16.45 MB, free: 6.438 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.001947/0.001946, allocations: 189.5 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.323/1.323, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04761/0.04761, allocations: 8.107 MB / 299.3 MB, free: 6.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001142, allocations: 60.12 kB / 414 MB, free: 22.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1033, allocations: 51.52 MB / 465.5 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.QfURegulation): time 0.003347/0.1066, allocations: 2.054 MB / 467.5 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002475/0.1092, allocations: 1.637 MB / 469.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002243/0.1094, allocations: 4 kB / 469.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004483/0.1099, allocations: 139.2 kB / 469.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007591/0.1107, allocations: 230.8 kB / 469.5 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002168/0.1128, allocations: 1.217 MB / 470.8 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006424/0.1135, allocations: 374.5 kB / 471.1 MB, free: 13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002523/0.1137, allocations: 122.5 kB / 471.3 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003829/0.1141, allocations: 171.4 kB / 471.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004434/0.1146, allocations: 199.2 kB / 471.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001174/0.1147, allocations: 32 kB / 471.6 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006231/0.1154, allocations: 287.7 kB / 471.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001388/0.1155, allocations: 91.73 kB / 472 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002383/0.1158, allocations: 175.1 kB / 472.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008918/0.1167, allocations: 0.5501 MB / 472.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1167, allocations: 0 / 472.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1167, allocations: 0 / 472.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.906e-05/0.1167, allocations: 0 / 472.7 MB, free: 11.39 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.004053/0.1208, allocations: 1.111 MB / 473.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.1208, allocations: 15.89 kB / 473.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.648e-05/0.1209, allocations: 66.72 kB / 473.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.121, allocations: 40.56 kB / 474 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004166/0.1215, allocations: 300.1 kB / 474.3 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002189/0.1217, allocations: 100.5 kB / 474.4 MB, free: 9.656 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.553e-05/0.1218, allocations: 28.38 kB / 474.4 MB, free: 9.629 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001661/0.1234, allocations: 0.7172 MB / 475.1 MB, free: 8.891 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/0.1234, allocations: 4 kB / 475.1 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.015e-05/0.1235, allocations: 12 kB / 475.1 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/0.1235, allocations: 8 kB / 475.1 MB, free: 8.867 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001057/0.1246, allocations: 449.4 kB / 475.6 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002272/0.1269, allocations: 1.526 MB / 477.1 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00192/0.1288, allocations: 0.7076 MB / 477.8 MB, free: 6.016 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006376/0.1295, allocations: 326.5 kB / 478.1 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001702/0.1296, allocations: 93.23 kB / 478.2 MB, free: 5.578 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004571/0.1301, allocations: 280.8 kB / 478.5 MB, free: 5.285 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.895e-06/0.1301, allocations: 0 / 478.5 MB, free: 5.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.0037/0.1338, allocations: 1.218 MB / 479.7 MB, free: 4.039 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.605e-05/0.1339, allocations: 140.5 kB / 479.8 MB, free: 3.871 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002454/0.1342, allocations: 227.9 kB / 480.1 MB, free: 3.637 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.607e-05/0.1342, allocations: 41.7 kB / 480.1 MB, free: 3.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.1344, allocations: 152.8 kB / 480.3 MB, free: 3.438 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001107/0.1345, allocations: 118.4 kB / 480.4 MB, free: 3.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001505/0.1346, allocations: 90.23 kB / 480.5 MB, free: 3.227 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.1348, allocations: 338.8 kB / 480.8 MB, free: 2.887 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003237/0.1351, allocations: 205 kB / 481 MB, free: 2.688 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004387/0.1355, allocations: 336.4 kB / 481.3 MB, free: 2.305 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000757/0.1363, allocations: 0.5375 MB / 481.9 MB, free: 1.723 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.1363, allocations: 0 / 481.9 MB, free: 1.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001584/0.1379, allocations: 0.7903 MB / 482.6 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.1379, allocations: 8 kB / 482.7 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.138, allocations: 7.984 kB / 482.7 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002168/0.1401, allocations: 460.4 kB / 483.1 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003057/0.1405, allocations: 91.83 kB / 483.2 MB, free: 372 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001505/0.142, allocations: 0.8996 MB / 484.1 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003433/0.1423, allocations: 51.58 kB / 484.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.3e-05/0.1424, allocations: 23.94 kB / 484.2 MB, free: 15.36 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.0002084/0.1426, allocations: 170.5 kB / 484.3 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006912/0.1433, allocations: 249.2 kB / 484.6 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001161/0.1445, allocations: 0.5749 MB / 485.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.258e-06/0.1445, allocations: 4 kB / 485.2 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.1445, allocations: 4 kB / 485.2 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.1445, allocations: 8.078 kB / 485.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002545/0.1471, allocations: 1.386 MB / 486.6 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.1471, allocations: 0 / 486.6 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003701/0.1475, allocations: 83.88 kB / 486.6 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001999/0.1495, allocations: 460.4 kB / 487.1 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.421e-05/0.1495, allocations: 11.98 kB / 487.1 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001474/0.151, allocations: 0.9114 MB / 488 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.151, allocations: 4 kB / 488 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002636/0.1537, allocations: 0.9937 MB / 489 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001346/0.1538, allocations: 108.6 kB / 489.1 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.113e-05/0.1539, allocations: 19.92 kB / 489.1 MB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004448/0.1544, allocations: 43.97 kB / 489.2 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.807e-05/0.1545, allocations: 23.97 kB / 489.2 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.436e-05/0.1545, allocations: 15.98 kB / 489.2 MB, free: 10.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000198/0.1547, allocations: 163.1 kB / 489.4 MB, free: 10 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1547, allocations: 0 / 489.4 MB, free: 10 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005468/0.1553, allocations: 111.9 kB / 489.5 MB, free: 9.891 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.003044/0.1583, allocations: 1.58 MB / 491.1 MB, free: 8.27 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002117/0.1605, allocations: 0.7015 MB / 491.8 MB, free: 7.566 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.337e-05/0.1605, allocations: 0 / 491.8 MB, free: 7.566 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001114/0.1616, allocations: 336.6 kB / 492.1 MB, free: 7.238 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008022/0.1624, allocations: 156.5 kB / 492.2 MB, free: 7.082 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007651/0.1701, allocations: 4.229 MB / 496.5 MB, free: 2.668 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003753/0.1705, allocations: 0.7848 MB / 497.3 MB, free: 1.852 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001515/0.1706, allocations: 38.94 kB / 497.3 MB, free: 1.812 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001774/0.1708, allocations: 99.41 kB / 497.4 MB, free: 1.715 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1708, allocations: 0 / 497.4 MB, free: 1.715 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02911/0.2, allocations: 9.217 MB / 0.4947 GB, free: 8.594 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.58/10.78, allocations: 12.47 kB / 0.4948 GB, free: 8.582 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)