Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesThreeLoads.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.OneSourceThreeLinesThreeLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceThreeLinesThreeLoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneSourceThreeLinesThreeLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceThreeLinesThreeLoads",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.001615/0.001615, allocations: 103.6 kB / 16.45 MB, free: 6.434 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.00174/0.00174, allocations: 192.7 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.279/1.279, allocations: 222.9 MB / 241.1 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05156/0.05156, allocations: 8.091 MB / 299.3 MB, free: 6.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001149/0.001149, allocations: 68.12 kB / 414 MB, free: 22.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09122/0.09238, allocations: 51.51 MB / 465.5 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceThreeLinesThreeLoads): time 0.003406/0.09583, allocations: 2.247 MB / 467.7 MB, free: 412 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002589/0.09844, allocations: 1.664 MB / 469.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002952/0.09877, allocations: 8 kB / 469.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005063/0.09934, allocations: 155.1 kB / 469.6 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005912/0.09994, allocations: 194.7 kB / 469.8 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001834/0.1018, allocations: 0.9608 MB / 470.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006535/0.1025, allocations: 414 kB / 471.1 MB, free: 13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002436/0.1027, allocations: 146 kB / 471.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002409/0.103, allocations: 179.2 kB / 471.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003412/0.1033, allocations: 223.1 kB / 471.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.472e-05/0.1034, allocations: 32 kB / 471.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004856/0.1039, allocations: 223.8 kB / 471.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.204e-05/0.104, allocations: 83.62 kB / 472 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002208/0.1042, allocations: 191 kB / 472.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007482/0.105, allocations: 0.5421 MB / 472.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.105, allocations: 4 kB / 472.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.105, allocations: 0 / 472.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.82e-05/0.105, allocations: 0 / 472.7 MB, free: 11.4 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.003736/0.1087, allocations: 1.146 MB / 473.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.1088, allocations: 11.89 kB / 473.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.524e-05/0.1089, allocations: 62.73 kB / 473.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001162/0.109, allocations: 48.45 kB / 474 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004343/0.1095, allocations: 335.4 kB / 474.3 MB, free: 9.707 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.487e-05/0.1095, allocations: 24.94 kB / 474.3 MB, free: 9.684 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.46e-05/0.1096, allocations: 32.38 kB / 474.4 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006451/0.1102, allocations: 413.3 kB / 474.8 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.1102, allocations: 3.938 kB / 474.8 MB, free: 9.238 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.884e-05/0.1103, allocations: 12 kB / 474.8 MB, free: 9.227 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.1103, allocations: 8 kB / 474.8 MB, free: 9.219 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000557/0.1109, allocations: 410.1 kB / 475.2 MB, free: 8.816 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002138/0.113, allocations: 1.549 MB / 476.7 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001112/0.1141, allocations: 0.5474 MB / 477.3 MB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003748/0.1145, allocations: 281.5 kB / 477.6 MB, free: 6.301 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.148e-05/0.1146, allocations: 16.36 kB / 477.6 MB, free: 6.285 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.026e-05/0.1146, allocations: 38.92 kB / 477.6 MB, free: 6.238 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.044e-06/0.1146, allocations: 0 / 477.6 MB, free: 6.238 MB / 350.1 MB Notification: Performance of matching and sorting (n=46): time 0.004461/0.1191, allocations: 1.647 MB / 479.3 MB, free: 4.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.324e-05/0.1192, allocations: 59.41 kB / 479.3 MB, free: 4.449 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003297/0.1195, allocations: 274.7 kB / 479.6 MB, free: 4.176 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.506e-05/0.1196, allocations: 37.7 kB / 479.6 MB, free: 4.133 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.1197, allocations: 156.9 kB / 479.8 MB, free: 3.977 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000131/0.1198, allocations: 153.8 kB / 479.9 MB, free: 3.824 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001592/0.12, allocations: 94.23 kB / 480 MB, free: 3.727 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.1201, allocations: 354.7 kB / 480.4 MB, free: 3.371 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003852/0.1205, allocations: 261 kB / 480.6 MB, free: 3.117 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003733/0.1209, allocations: 272.9 kB / 480.9 MB, free: 2.848 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008114/0.1217, allocations: 0.5743 MB / 481.5 MB, free: 2.273 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.1217, allocations: 0 / 481.5 MB, free: 2.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.002299/0.1241, allocations: 1.032 MB / 482.5 MB, free: 1.223 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.1241, allocations: 4 kB / 482.5 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.1241, allocations: 0 / 482.5 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001786/0.1259, allocations: 430.1 kB / 482.9 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002962/0.1262, allocations: 75.84 kB / 483 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007144/0.1334, allocations: 6.106 MB / 489.1 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003618/0.1337, allocations: 39.53 kB / 489.1 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.048e-05/0.1338, allocations: 19.98 kB / 489.2 MB, free: 10.13 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(2,4), (2,4), (2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002476/0.1341, allocations: 161.8 kB / 489.3 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/0.1342, allocations: 43.47 kB / 489.4 MB, free: 9.922 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0023/0.1365, allocations: 0.9898 MB / 490.4 MB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.752e-05/0.1365, allocations: 4 kB / 490.4 MB, free: 8.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.1365, allocations: 7.938 kB / 490.4 MB, free: 8.902 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.1365, allocations: 7.875 kB / 490.4 MB, free: 8.895 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006413/0.1372, allocations: 0.5675 MB / 490.9 MB, free: 8.277 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.1372, allocations: 4 kB / 490.9 MB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001924/0.1374, allocations: 51.97 kB / 491 MB, free: 8.223 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001723/0.1391, allocations: 430.1 kB / 491.4 MB, free: 7.793 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.924e-05/0.1392, allocations: 12 kB / 491.4 MB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006332/0.1455, allocations: 6.022 MB / 497.4 MB, free: 1.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.1455, allocations: 3.938 kB / 497.5 MB, free: 1.336 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002176/0.1477, allocations: 1.013 MB / 498.5 MB, free: 304 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001352/0.1479, allocations: 120.5 kB / 498.6 MB, free: 164 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.351e-05/0.1479, allocations: 11.94 kB / 498.6 MB, free: 152 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003481/0.1483, allocations: 27.97 kB / 498.6 MB, free: 124 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/0.1484, allocations: 52.31 kB / 498.7 MB, free: 72 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.532e-05/0.1484, allocations: 12 kB / 498.7 MB, free: 60 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002449/0.1487, allocations: 198 kB / 498.9 MB, free: 15.86 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1487, allocations: 0 / 498.9 MB, free: 15.86 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006709/0.1494, allocations: 163.9 kB / 499 MB, free: 15.7 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(2,4), (2,4), (2,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002486/0.1519, allocations: 1.597 MB / 0.4889 GB, free: 14.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001884/0.1538, allocations: 1.095 MB / 0.49 GB, free: 12.94 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.1538, allocations: 0 / 0.49 GB, free: 12.94 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00128/0.1551, allocations: 0.7601 MB / 0.4907 GB, free: 12.14 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004722/0.1556, allocations: 44.88 kB / 0.4908 GB, free: 12.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007843/0.1634, allocations: 4.717 MB / 0.4954 GB, free: 7.285 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003948/0.1638, allocations: 0.8012 MB / 0.4961 GB, free: 6.457 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001716/0.164, allocations: 50.92 kB / 0.4962 GB, free: 6.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001751/0.1642, allocations: 119.4 kB / 0.4963 GB, free: 6.293 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.1642, allocations: 0 / 0.4963 GB, free: 6.293 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2339/0.3982, allocations: 14.89 MB / 0.5108 GB, free: 45.4 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.4, allocations: 11.95 kB / 0.5109 GB, free: 45.4 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesThreeLoads.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesThreeLoads.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesThreeLoads.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesThreeLoads.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_OneSourceThreeLinesThreeLoads_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_OneSourceThreeLinesThreeLoads.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesThreeLoads.pipe 2>&1)