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.001438/0.001439, allocations: 107.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.001738/0.001738, allocations: 189 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.231/1.231, allocations: 222.9 MB / 241.1 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04439/0.04439, allocations: 8.106 MB / 299.3 MB, free: 6.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001098/0.001098, allocations: 59.91 kB / 414 MB, free: 22.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08054/0.08165, allocations: 51.51 MB / 465.5 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceThreeLinesThreeLoads): time 0.002982/0.08467, allocations: 2.259 MB / 467.8 MB, free: 428 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001999/0.08669, allocations: 1.66 MB / 469.4 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000102/0.0868, allocations: 4 kB / 469.4 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003607/0.08717, allocations: 159 kB / 469.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000372/0.08756, allocations: 194.7 kB / 469.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001585/0.08915, allocations: 0.9569 MB / 470.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004556/0.08962, allocations: 414 kB / 471.1 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000226/0.08985, allocations: 143.5 kB / 471.3 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001504/0.09001, allocations: 171.3 kB / 471.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002579/0.09027, allocations: 219.1 kB / 471.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.557e-05/0.09034, allocations: 32 kB / 471.7 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003608/0.0907, allocations: 223.8 kB / 471.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.845e-05/0.09078, allocations: 91.61 kB / 472 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001696/0.09096, allocations: 203 kB / 472.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005776/0.09154, allocations: 0.5449 MB / 472.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.09155, allocations: 3.938 kB / 472.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.09156, allocations: 0 / 472.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.642e-06/0.09157, allocations: 0 / 472.7 MB, free: 11.41 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.003463/0.09504, allocations: 1.153 MB / 473.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.09509, allocations: 15.83 kB / 473.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.099e-05/0.09516, allocations: 66.73 kB / 474 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.399e-05/0.09525, allocations: 48.66 kB / 474 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003898/0.09565, allocations: 327.6 kB / 474.3 MB, free: 9.711 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.748e-05/0.09567, allocations: 20.94 kB / 474.4 MB, free: 9.691 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.238e-05/0.09573, allocations: 32.38 kB / 474.4 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005983/0.09634, allocations: 425.3 kB / 474.8 MB, free: 9.238 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.09636, allocations: 7.875 kB / 474.8 MB, free: 9.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.428e-05/0.0964, allocations: 12 kB / 474.8 MB, free: 9.219 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.09641, allocations: 8 kB / 474.8 MB, free: 9.211 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005538/0.09697, allocations: 410.1 kB / 475.2 MB, free: 8.809 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001995/0.09897, allocations: 1.538 MB / 476.8 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/0.1, allocations: 0.5591 MB / 477.3 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003625/0.1004, allocations: 281.5 kB / 477.6 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.132e-05/0.1005, allocations: 8.375 kB / 477.6 MB, free: 6.285 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.663e-05/0.1005, allocations: 42.94 kB / 477.6 MB, free: 6.234 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 1.392e-06/0.1005, allocations: 0 / 477.6 MB, free: 6.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=46): time 0.004255/0.1048, allocations: 1.647 MB / 479.3 MB, free: 4.516 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.824e-05/0.1048, allocations: 59.41 kB / 479.4 MB, free: 4.445 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002914/0.1051, allocations: 270.7 kB / 479.6 MB, free: 4.176 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.891e-05/0.1052, allocations: 37.7 kB / 479.7 MB, free: 4.133 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001145/0.1053, allocations: 173 kB / 479.8 MB, free: 3.961 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001103/0.1054, allocations: 166.5 kB / 480 MB, free: 3.797 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001533/0.1056, allocations: 90.23 kB / 480.1 MB, free: 3.703 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.1057, allocations: 350.7 kB / 480.4 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003543/0.106, allocations: 261 kB / 480.7 MB, free: 3.098 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003636/0.1064, allocations: 269 kB / 480.9 MB, free: 2.832 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007767/0.1072, allocations: 0.5821 MB / 481.5 MB, free: 2.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.1072, allocations: 0 / 481.5 MB, free: 2.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.002138/0.1093, allocations: 1.02 MB / 482.5 MB, free: 1.211 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.1094, allocations: 6.344 kB / 482.5 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.1094, allocations: 0 / 482.5 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001684/0.1111, allocations: 430.1 kB / 483 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002695/0.1114, allocations: 75.89 kB / 483 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006595/0.118, allocations: 6.118 MB / 489.2 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000309/0.1183, allocations: 39.73 kB / 489.2 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.103e-05/0.1183, allocations: 15.98 kB / 489.2 MB, free: 10.11 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.0002078/0.1185, allocations: 157.8 kB / 489.4 MB, free: 9.949 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.777e-05/0.1186, allocations: 39.7 kB / 489.4 MB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002148/0.1208, allocations: 0.9975 MB / 490.4 MB, free: 8.895 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.1208, allocations: 4 kB / 490.4 MB, free: 8.891 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.1208, allocations: 0 / 490.4 MB, free: 8.891 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.1208, allocations: 7.922 kB / 490.4 MB, free: 8.883 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005464/0.1214, allocations: 0.5677 MB / 491 MB, free: 8.266 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1214, allocations: 4 kB / 491 MB, free: 8.262 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001903/0.1216, allocations: 63.91 kB / 491 MB, free: 8.199 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001608/0.1232, allocations: 422.1 kB / 491.5 MB, free: 7.777 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.154e-05/0.1232, allocations: 12 kB / 491.5 MB, free: 7.766 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005997/0.1292, allocations: 6.042 MB / 497.5 MB, free: 1.305 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1293, allocations: 0 / 497.5 MB, free: 1.305 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002036/0.1313, allocations: 1.021 MB / 498.5 MB, free: 264 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.244e-05/0.1314, allocations: 116.7 kB / 498.6 MB, free: 128 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.559e-05/0.1315, allocations: 15.94 kB / 498.7 MB, free: 112 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003218/0.1318, allocations: 27.97 kB / 498.7 MB, free: 84 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.571e-05/0.1319, allocations: 36.39 kB / 498.7 MB, free: 48 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.408e-05/0.1319, allocations: 15.98 kB / 498.7 MB, free: 32 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002288/0.1322, allocations: 202 kB / 498.9 MB, free: 15.83 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1322, allocations: 4 kB / 498.9 MB, free: 15.82 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005627/0.1327, allocations: 164 kB / 499.1 MB, free: 15.66 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.002346/0.1351, allocations: 1.585 MB / 0.489 GB, free: 14.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001801/0.1369, allocations: 1.091 MB / 0.49 GB, free: 12.91 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.1369, allocations: 4 kB / 0.49 GB, free: 12.91 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001218/0.1381, allocations: 0.7639 MB / 0.4908 GB, free: 12.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004077/0.1386, allocations: 48.88 kB / 0.4908 GB, free: 12.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007293/0.1459, allocations: 4.732 MB / 0.4954 GB, free: 7.234 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004074/0.1463, allocations: 0.8012 MB / 0.4962 GB, free: 6.406 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001703/0.1465, allocations: 50.92 kB / 0.4963 GB, free: 6.359 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001803/0.1467, allocations: 127.3 kB / 0.4964 GB, free: 6.234 MB / 382.1 MB Notification: Performance of SimCode: time 1.392e-06/0.1467, allocations: 0 / 0.4964 GB, free: 6.234 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2096/0.3563, allocations: 14.42 MB / 0.5105 GB, free: 46.11 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.76/11.11, allocations: 8.156 kB / 0.5105 GB, free: 46.11 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)