Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesOneLoad.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.OneSourceTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneSourceTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesOneLoad",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.001206/0.001212, allocations: 104.4 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.001155/0.001155, allocations: 192.1 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.343/1.343, 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.05173/0.05173, allocations: 8.095 MB / 299.3 MB, free: 6.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001775/0.001775, allocations: 75.88 kB / 414 MB, free: 22.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09679/0.09857, allocations: 51.5 MB / 465.5 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceTwoLinesOneLoad): time 0.002911/0.1015, allocations: 1.574 MB / 467.1 MB, free: 1.098 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002174/0.1037, allocations: 1.54 MB / 468.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.573e-05/0.1038, allocations: 4 kB / 468.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003767/0.1042, allocations: 131.3 kB / 468.7 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002944/0.1045, allocations: 111.3 kB / 468.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001712/0.1062, allocations: 0.9101 MB / 469.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003654/0.1066, allocations: 234.8 kB / 470 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001706/0.1068, allocations: 84.31 kB / 470.1 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001202/0.1069, allocations: 99.64 kB / 470.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002026/0.1071, allocations: 127.4 kB / 470.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.574e-05/0.1072, allocations: 16 kB / 470.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000385/0.1076, allocations: 207.8 kB / 470.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.689e-05/0.1076, allocations: 47.78 kB / 470.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001246/0.1078, allocations: 115.4 kB / 470.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005416/0.1083, allocations: 390.6 kB / 471.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.1083, allocations: 3.938 kB / 471.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.1083, allocations: 0 / 471.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.1083, allocations: 0 / 471.1 MB, free: 13.09 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.002482/0.1108, allocations: 0.8221 MB / 471.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.1109, allocations: 11.89 kB / 471.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.392e-05/0.111, allocations: 54.73 kB / 471.9 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.199e-05/0.111, allocations: 24.8 kB / 472 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00033/0.1114, allocations: 260 kB / 472.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.958e-05/0.1114, allocations: 12.7 kB / 472.2 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.055e-05/0.1114, allocations: 20.38 kB / 472.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004352/0.1119, allocations: 260 kB / 472.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.249e-05/0.1119, allocations: 7.938 kB / 472.5 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.425e-05/0.1119, allocations: 8 kB / 472.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.112, allocations: 7.984 kB / 472.5 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003878/0.1123, allocations: 239.9 kB / 472.8 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001575/0.1139, allocations: 1.114 MB / 473.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006918/0.1146, allocations: 318.4 kB / 474.2 MB, free: 9.719 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002449/0.1149, allocations: 157.2 kB / 474.3 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.324e-05/0.115, allocations: 15.92 kB / 474.4 MB, free: 9.547 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.931e-05/0.115, allocations: 38.5 kB / 474.4 MB, free: 9.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.303e-06/0.115, allocations: 0 / 474.4 MB, free: 9.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.003238/0.1182, allocations: 0.9758 MB / 475.4 MB, free: 8.496 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.202e-05/0.1183, allocations: 55.41 kB / 475.4 MB, free: 8.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002262/0.1185, allocations: 190.4 kB / 475.6 MB, free: 8.234 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.684e-05/0.1186, allocations: 37.7 kB / 475.6 MB, free: 8.191 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.1187, allocations: 128.6 kB / 475.8 MB, free: 8.062 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.844e-05/0.1188, allocations: 87.22 kB / 475.9 MB, free: 7.977 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001157/0.1189, allocations: 69.58 kB / 475.9 MB, free: 7.902 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.1191, allocations: 330.8 kB / 476.2 MB, free: 7.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002486/0.1193, allocations: 156 kB / 476.4 MB, free: 7.418 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002543/0.1196, allocations: 165 kB / 476.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005329/0.1201, allocations: 346.4 kB / 476.9 MB, free: 6.914 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.1201, allocations: 0 / 476.9 MB, free: 6.914 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.00158/0.1217, allocations: 0.642 MB / 477.5 MB, free: 6.262 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.1218, allocations: 4 kB / 477.5 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.1218, allocations: 8 kB / 477.6 MB, free: 6.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001436/0.1232, allocations: 324.5 kB / 477.9 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001771/0.1234, allocations: 51.91 kB / 477.9 MB, free: 5.879 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004522/0.1279, allocations: 2.746 MB / 480.7 MB, free: 2.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000218/0.1282, allocations: 24.12 kB / 480.7 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.623e-05/0.1282, allocations: 8 kB / 480.7 MB, free: 2.953 MB / 350.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 (27): * Single equations (assignments): 26 * 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 {(6,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001554/0.1284, allocations: 141.8 kB / 480.8 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.925e-05/0.1284, allocations: 27.8 kB / 480.9 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001611/0.13, allocations: 0.617 MB / 481.5 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.1301, allocations: 0 / 481.5 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.1301, allocations: 7.938 kB / 481.5 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.844e-06/0.1301, allocations: 7.984 kB / 481.5 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004327/0.1305, allocations: 377.3 kB / 481.9 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.1305, allocations: 0 / 481.9 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001035/0.1306, allocations: 27.98 kB / 481.9 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001339/0.132, allocations: 312.5 kB / 482.2 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.334e-05/0.132, allocations: 15.94 kB / 482.2 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004103/0.1361, allocations: 2.735 MB / 484.9 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1361, allocations: 0 / 484.9 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001548/0.1377, allocations: 0.6761 MB / 485.6 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.904e-05/0.1378, allocations: 101 kB / 485.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.254e-05/0.1378, allocations: 4 kB / 485.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002081/0.138, allocations: 15.98 kB / 485.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.983e-05/0.1381, allocations: 27.91 kB / 485.8 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.321e-05/0.1382, allocations: 4 kB / 485.8 MB, free: 13.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001563/0.1383, allocations: 143.2 kB / 485.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1383, allocations: 0 / 485.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004562/0.1388, allocations: 99.95 kB / 486 MB, free: 13.39 MB / 366.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 (20): * Single equations (assignments): 19 * 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 {(6,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001998/0.1408, allocations: 1.225 MB / 487.2 MB, free: 12.13 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001516/0.1423, allocations: 0.6272 MB / 487.9 MB, free: 11.49 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.696e-06/0.1423, allocations: 0 / 487.9 MB, free: 11.49 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001035/0.1434, allocations: 442.3 kB / 488.3 MB, free: 11.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003454/0.1437, allocations: 31.67 kB / 488.3 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005525/0.1493, allocations: 3.253 MB / 491.6 MB, free: 7.684 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004127/0.1497, allocations: 0.7446 MB / 492.3 MB, free: 6.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001207/0.1498, allocations: 37.92 kB / 492.4 MB, free: 6.871 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001143/0.15, allocations: 67.41 kB / 492.4 MB, free: 6.805 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.15, allocations: 0 / 492.4 MB, free: 6.805 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03592/0.1859, allocations: 8.398 MB / 0.4891 GB, free: 14.53 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.57, allocations: 7.922 kB / 0.4891 GB, free: 14.52 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesOneLoad.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesOneLoad_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_OneSourceTwoLinesOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesOneLoad.pipe 2>&1)