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.0012/0.0012, allocations: 105 kB / 16.45 MB, free: 6.5 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.001331/0.001331, allocations: 189.5 kB / 17.39 MB, free: 5.688 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.264/1.264, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.0437/0.0437, allocations: 8.096 MB / 299.3 MB, free: 6.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001104/0.001104, allocations: 67.89 kB / 414 MB, free: 22.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07764/0.07876, allocations: 51.5 MB / 465.5 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceThreeLinesThreeLoads): time 0.003035/0.08184, allocations: 2.255 MB / 467.7 MB, free: 416 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001896/0.08375, allocations: 1.664 MB / 469.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.876e-05/0.08387, allocations: 8 kB / 469.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003344/0.08421, allocations: 151.1 kB / 469.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003367/0.08456, allocations: 198.7 kB / 469.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001587/0.08616, allocations: 0.9607 MB / 470.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004067/0.08657, allocations: 414.1 kB / 471.1 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000201/0.08678, allocations: 135.5 kB / 471.3 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001516/0.08694, allocations: 179.3 kB / 471.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002507/0.0872, allocations: 227 kB / 471.7 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.764e-05/0.08725, allocations: 32 kB / 471.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003258/0.08759, allocations: 223.8 kB / 471.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.335e-05/0.08766, allocations: 83.62 kB / 472 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001791/0.08784, allocations: 195 kB / 472.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006049/0.08845, allocations: 0.5487 MB / 472.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.08847, allocations: 0 / 472.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.08848, allocations: 0 / 472.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.08849, 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.003547/0.09204, allocations: 1.157 MB / 473.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.09209, allocations: 15.89 kB / 473.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.615e-05/0.09217, allocations: 66.72 kB / 474 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.155e-05/0.09227, allocations: 48.66 kB / 474 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003764/0.09265, allocations: 327.6 kB / 474.3 MB, free: 9.695 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.974e-05/0.09268, allocations: 28.94 kB / 474.4 MB, free: 9.668 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.387e-05/0.09273, allocations: 32.38 kB / 474.4 MB, free: 9.637 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000596/0.09334, allocations: 413.3 kB / 474.8 MB, free: 9.227 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.09336, allocations: 7.875 kB / 474.8 MB, free: 9.219 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.415e-05/0.0934, allocations: 12 kB / 474.8 MB, free: 9.207 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.09341, allocations: 7.938 kB / 474.8 MB, free: 9.199 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005679/0.09398, allocations: 418 kB / 475.2 MB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001964/0.09596, allocations: 1.534 MB / 476.8 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001053/0.09702, allocations: 0.5591 MB / 477.3 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003669/0.0974, allocations: 281.5 kB / 477.6 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.821e-05/0.09747, allocations: 16.36 kB / 477.6 MB, free: 6.262 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.609e-05/0.0975, allocations: 42.88 kB / 477.7 MB, free: 6.211 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 1.553e-06/0.09751, allocations: 0 / 477.7 MB, free: 6.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=46): time 0.004317/0.1018, allocations: 1.643 MB / 479.3 MB, free: 4.496 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.387e-05/0.1019, allocations: 59.41 kB / 479.4 MB, free: 4.426 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002758/0.1022, allocations: 274.7 kB / 479.6 MB, free: 4.152 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.175e-05/0.1022, allocations: 37.7 kB / 479.7 MB, free: 4.109 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.524e-05/0.1023, allocations: 165 kB / 479.8 MB, free: 3.945 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.1024, allocations: 170.5 kB / 480 MB, free: 3.777 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001435/0.1026, allocations: 94.23 kB / 480.1 MB, free: 3.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.1027, allocations: 338.8 kB / 480.4 MB, free: 3.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003719/0.1031, allocations: 269 kB / 480.7 MB, free: 3.078 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003741/0.1034, allocations: 273 kB / 480.9 MB, free: 2.809 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007699/0.1042, allocations: 0.5782 MB / 481.5 MB, free: 2.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.1042, allocations: 0 / 481.5 MB, free: 2.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.002158/0.1064, allocations: 1.02 MB / 482.5 MB, free: 1.191 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.1064, allocations: 10.34 kB / 482.6 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.678e-06/0.1064, allocations: 7.938 kB / 482.6 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001679/0.1081, allocations: 422.1 kB / 483 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002638/0.1084, allocations: 71.91 kB / 483 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006651/0.1151, allocations: 6.118 MB / 489.2 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003227/0.1154, allocations: 39.72 kB / 489.2 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.785e-05/0.1154, allocations: 16 kB / 489.2 MB, free: 10.09 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.0001839/0.1156, allocations: 153.8 kB / 489.4 MB, free: 9.934 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.577e-05/0.1157, allocations: 39.7 kB / 489.4 MB, free: 9.895 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002226/0.1179, allocations: 1.001 MB / 490.4 MB, free: 8.875 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.118, allocations: 8 kB / 490.4 MB, free: 8.867 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.118, allocations: 0 / 490.4 MB, free: 8.867 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.118, allocations: 3.938 kB / 490.4 MB, free: 8.863 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005175/0.1185, allocations: 0.5677 MB / 491 MB, free: 8.246 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.1185, allocations: 4 kB / 491 MB, free: 8.242 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001953/0.1187, allocations: 55.97 kB / 491 MB, free: 8.188 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001631/0.1204, allocations: 430.1 kB / 491.5 MB, free: 7.758 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.336e-05/0.1204, allocations: 4 kB / 491.5 MB, free: 7.754 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006038/0.1264, allocations: 6.046 MB / 497.5 MB, free: 1.289 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.1265, allocations: 8.016 kB / 497.5 MB, free: 1.281 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002073/0.1285, allocations: 1.01 MB / 498.5 MB, free: 252 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.617e-05/0.1286, allocations: 124.7 kB / 498.7 MB, free: 108 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.808e-05/0.1287, allocations: 7.938 kB / 498.7 MB, free: 100 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003265/0.129, allocations: 27.98 kB / 498.7 MB, free: 72 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.621e-05/0.1291, allocations: 44.31 kB / 498.7 MB, free: 28 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.256e-05/0.1292, allocations: 16 kB / 498.7 MB, free: 12 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002298/0.1294, allocations: 201.9 kB / 498.9 MB, free: 15.81 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.1e-07/0.1294, allocations: 0 / 498.9 MB, free: 15.81 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005156/0.1299, allocations: 168 kB / 499.1 MB, free: 15.65 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.002394/0.1323, allocations: 1.585 MB / 0.489 GB, free: 14.02 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001897/0.1342, allocations: 1.099 MB / 0.49 GB, free: 12.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.1343, allocations: 0 / 0.49 GB, free: 12.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001245/0.1355, allocations: 0.7601 MB / 0.4908 GB, free: 12.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004222/0.1359, allocations: 40.88 kB / 0.4908 GB, free: 12.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007526/0.1435, allocations: 4.733 MB / 0.4954 GB, free: 7.223 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003311/0.1438, allocations: 0.8012 MB / 0.4962 GB, free: 6.395 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001543/0.144, allocations: 54.92 kB / 0.4963 GB, free: 6.344 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001583/0.1442, allocations: 115.4 kB / 0.4964 GB, free: 6.23 MB / 382.1 MB Notification: Performance of SimCode: time 7.21e-07/0.1442, allocations: 0 / 0.4964 GB, free: 6.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2094/0.3535, allocations: 14.43 MB / 0.5105 GB, free: 45.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.48/10.83, allocations: 9.906 kB / 0.5105 GB, free: 45.76 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 & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesThreeLoads_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSysPro_PowerSysPro_Examples_OneSourceThreeLinesThreeLoads.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesThreeLoads.pipe 2>&1)