Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.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.OneSourceTwoLinesWithFaultOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesWithFaultOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesWithFaultOneLoad",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.001084/0.001084, allocations: 107.2 kB / 16.45 MB, free: 6.457 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.001096/0.001096, allocations: 186.4 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.286/1.286, 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.04392/0.04391, allocations: 8.101 MB / 299.3 MB, free: 6.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001147, allocations: 67.89 kB / 414 MB, free: 22.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08916/0.09032, allocations: 51.51 MB / 465.5 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad): time 0.00359/0.09396, allocations: 2.454 MB / 467.9 MB, free: 188 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002829/0.09682, allocations: 1.711 MB / 469.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003871/0.09723, allocations: 8 kB / 469.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005557/0.0978, allocations: 159 kB / 469.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006836/0.09853, allocations: 218.6 kB / 470 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002106/0.1007, allocations: 1.027 MB / 471.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009301/0.1016, allocations: 481.8 kB / 471.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000343/0.1019, allocations: 176.4 kB / 471.7 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000341/0.1023, allocations: 187.3 kB / 471.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000472/0.1028, allocations: 251 kB / 472.1 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001217/0.1029, allocations: 44 kB / 472.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005717/0.1035, allocations: 259.7 kB / 472.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001234/0.1036, allocations: 95.62 kB / 472.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003134/0.1039, allocations: 234.8 kB / 472.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009323/0.1049, allocations: 0.6539 MB / 473.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.1049, allocations: 0 / 473.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1049, allocations: 4 kB / 473.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.774e-05/0.1049, allocations: 0 / 473.4 MB, free: 10.69 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.003795/0.1087, allocations: 1.19 MB / 474.6 MB, free: 9.441 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.297e-05/0.1088, allocations: 11.89 kB / 474.6 MB, free: 9.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.233e-05/0.1089, allocations: 66.73 kB / 474.7 MB, free: 9.355 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002837/0.1092, allocations: 68.62 kB / 474.7 MB, free: 9.289 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005005/0.1097, allocations: 355.6 kB / 475.1 MB, free: 8.902 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.716e-05/0.1097, allocations: 33.03 kB / 475.1 MB, free: 8.871 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.433e-05/0.1098, allocations: 32.38 kB / 475.2 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007027/0.1105, allocations: 462.5 kB / 475.6 MB, free: 8.379 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.1105, allocations: 3.938 kB / 475.6 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.192e-05/0.1106, allocations: 19.98 kB / 475.6 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.1106, allocations: 7.938 kB / 475.6 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006626/0.1113, allocations: 446.5 kB / 476.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0025/0.1138, allocations: 1.987 MB / 478.1 MB, free: 5.727 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/0.1149, allocations: 0.6897 MB / 478.7 MB, free: 4.988 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003934/0.1153, allocations: 301.2 kB / 479 MB, free: 4.691 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.79e-05/0.1154, allocations: 11.97 kB / 479.1 MB, free: 4.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006622/0.116, allocations: 468.5 kB / 479.5 MB, free: 4.184 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.385e-06/0.116, allocations: 0 / 479.5 MB, free: 4.184 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.005502/0.1215, allocations: 1.803 MB / 481.3 MB, free: 2.348 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/0.1217, allocations: 192.3 kB / 481.5 MB, free: 2.117 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003659/0.1221, allocations: 303 kB / 481.8 MB, free: 1.812 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.572e-05/0.1221, allocations: 41.7 kB / 481.8 MB, free: 1.766 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001304/0.1223, allocations: 181 kB / 482 MB, free: 1.586 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001422/0.1224, allocations: 166.6 kB / 482.2 MB, free: 1.422 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001928/0.1226, allocations: 106.2 kB / 482.3 MB, free: 1.312 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.1228, allocations: 342.8 kB / 482.6 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004069/0.1232, allocations: 273.1 kB / 482.9 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004596/0.1236, allocations: 347.8 kB / 483.2 MB, free: 348 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00682/0.1305, allocations: 2.078 MB / 485.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.075e-06/0.1305, allocations: 3.938 kB / 485.3 MB, free: 14.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002569/0.1331, allocations: 1.184 MB / 486.5 MB, free: 13.01 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.681e-05/0.1331, allocations: 41.64 kB / 486.5 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.1332, allocations: 0 / 486.5 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002066/0.1352, allocations: 0.5158 MB / 487 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000287/0.1355, allocations: 87.83 kB / 487.1 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005673/0.1412, allocations: 3.96 MB / 491.1 MB, free: 8.266 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004094/0.1416, allocations: 55.59 kB / 491.1 MB, free: 8.211 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.411e-05/0.1417, allocations: 20 kB / 491.2 MB, free: 8.191 MB / 366.1 MB Warning: Assuming fixed start value for the following 3 variables: line2.myFault.fault:DISCRETE(start = false fixed = true ) "true means the fault is active" type: Boolean line2.myFault.Y.re:DISCRETE(start = 0.0 fixed = true ) "Real part of complex number" type: Real line2.myFault.Y.im:DISCRETE(start = 0.0 fixed = true ) "Imaginary part of complex number" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.line2.myFault.fault,line2.myFault.fault,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.line2.myFault.Y.re,$PRE.line2.myFault.Y.im,line2.myFault.Y.im,line2.myFault.Y.re) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 1 * 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 {(3,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0002959/0.142, allocations: 232.1 kB / 491.4 MB, free: 7.949 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.403e-05/0.1421, allocations: 39.77 kB / 491.4 MB, free: 7.91 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002491/0.1446, allocations: 1.141 MB / 492.6 MB, free: 6.754 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.1446, allocations: 4 kB / 492.6 MB, free: 6.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-06/0.1446, allocations: 0 / 492.6 MB, free: 6.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.1446, allocations: 3.984 kB / 492.6 MB, free: 6.746 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003099/0.1478, allocations: 1.834 MB / 494.4 MB, free: 4.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.1478, allocations: 0 / 494.4 MB, free: 4.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001598/0.1479, allocations: 47.98 kB / 494.5 MB, free: 4.793 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002027/0.15, allocations: 0.5041 MB / 495 MB, free: 4.285 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.511e-05/0.15, allocations: 16 kB / 495 MB, free: 4.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005383/0.1554, allocations: 3.908 MB / 498.9 MB, free: 228 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.1554, allocations: 4 kB / 498.9 MB, free: 224 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002536/0.158, allocations: 1.185 MB / 0.4884 GB, free: 15 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001488/0.1582, allocations: 128.7 kB / 0.4885 GB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.713e-05/0.1582, allocations: 15.94 kB / 0.4885 GB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003328/0.1586, allocations: 27.22 kB / 0.4885 GB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001276/0.1587, allocations: 44.28 kB / 0.4886 GB, free: 14.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.525e-05/0.1588, allocations: 16 kB / 0.4886 GB, free: 14.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002459/0.159, allocations: 225.9 kB / 0.4888 GB, free: 14.54 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.159, allocations: 0 / 0.4888 GB, free: 14.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007016/0.1597, allocations: 183.9 kB / 0.489 GB, free: 14.36 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: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,line2.myFault.Y.re,line2.myFault.Y.im,line2.myFault.fault) * Number of discrete states: 7 ($whenCondition4,line2.myFault.Y.im,line2.myFault.Y.re,$whenCondition3,$whenCondition2,line2.myFault.fault,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * 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 {(3,15)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002792/0.1625, allocations: 1.774 MB / 0.4907 GB, free: 12.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001855/0.1644, allocations: 0.9847 MB / 0.4917 GB, free: 11.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.192e-06/0.1644, allocations: 0 / 0.4917 GB, free: 11.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001143/0.1656, allocations: 0.6919 MB / 0.4923 GB, free: 10.83 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004252/0.166, allocations: 47.56 kB / 0.4924 GB, free: 10.79 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008452/0.1745, allocations: 5.252 MB / 0.4975 GB, free: 5.406 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003675/0.1749, allocations: 0.8055 MB / 0.4983 GB, free: 4.574 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001597/0.1751, allocations: 51.33 kB / 0.4983 GB, free: 4.523 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001686/0.1752, allocations: 127.4 kB / 0.4985 GB, free: 4.402 MB / 382.1 MB Notification: Performance of SimCode: time 1.052e-06/0.1752, allocations: 0 / 0.4985 GB, free: 4.402 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2182/0.3934, allocations: 15.22 MB / 0.5133 GB, free: 44.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/11.24, allocations: 8.047 kB / 0.5133 GB, free: 44.36 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad_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_OneSourceTwoLinesWithFaultOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe 2>&1)