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.001716/0.001716, allocations: 106.5 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.001335/0.001336, allocations: 186.4 kB / 17.38 MB, free: 5.656 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.39/1.39, allocations: 222.9 MB / 241.1 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05096/0.05096, allocations: 8.094 MB / 299.3 MB, free: 6.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 63.91 kB / 414 MB, free: 22.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1042, allocations: 51.52 MB / 465.5 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad): time 0.003852/0.1081, allocations: 2.446 MB / 467.9 MB, free: 208 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002826/0.1109, allocations: 1.722 MB / 469.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003158/0.1113, allocations: 4 kB / 469.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000544/0.1118, allocations: 163 kB / 469.8 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006863/0.1126, allocations: 210.7 kB / 470 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002066/0.1147, allocations: 1.027 MB / 471.1 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008665/0.1155, allocations: 477.8 kB / 471.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003211/0.1159, allocations: 180.3 kB / 471.7 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003101/0.1162, allocations: 187.3 kB / 471.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004474/0.1166, allocations: 259 kB / 472.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000114/0.1168, allocations: 44 kB / 472.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005794/0.1173, allocations: 255.8 kB / 472.4 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001097/0.1175, allocations: 95.61 kB / 472.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002904/0.1178, allocations: 230.9 kB / 472.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009981/0.1188, allocations: 0.65 MB / 473.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1188, allocations: 0 / 473.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1188, allocations: 0 / 473.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.94e-05/0.1188, allocations: 4 kB / 473.4 MB, free: 10.71 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.003956/0.1228, allocations: 1.194 MB / 474.6 MB, free: 9.457 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.1228, allocations: 11.89 kB / 474.6 MB, free: 9.445 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001063/0.123, allocations: 66.72 kB / 474.7 MB, free: 9.371 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002831/0.1232, allocations: 68.62 kB / 474.7 MB, free: 9.305 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005012/0.1238, allocations: 355.6 kB / 475.1 MB, free: 8.918 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.302e-05/0.1238, allocations: 33.03 kB / 475.1 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.404e-05/0.1239, allocations: 36.38 kB / 475.2 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008557/0.1247, allocations: 450.5 kB / 475.6 MB, free: 8.402 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.1248, allocations: 7.875 kB / 475.6 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.103e-05/0.1248, allocations: 12 kB / 475.6 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.1248, allocations: 4 kB / 475.6 MB, free: 8.379 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007409/0.1256, allocations: 458.4 kB / 476.1 MB, free: 7.934 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002776/0.1284, allocations: 1.983 MB / 478.1 MB, free: 5.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001164/0.1295, allocations: 0.6974 MB / 478.8 MB, free: 5.004 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004564/0.13, allocations: 301.2 kB / 479 MB, free: 4.707 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.507e-05/0.1301, allocations: 4 kB / 479 MB, free: 4.703 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007189/0.1308, allocations: 472.6 kB / 479.5 MB, free: 4.203 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.294e-06/0.1308, allocations: 0 / 479.5 MB, free: 4.203 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.005872/0.1367, allocations: 1.803 MB / 481.3 MB, free: 2.367 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000142/0.1369, allocations: 200.3 kB / 481.5 MB, free: 2.129 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004432/0.1373, allocations: 303 kB / 481.8 MB, free: 1.824 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.524e-05/0.1374, allocations: 41.69 kB / 481.8 MB, free: 1.777 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001669/0.1376, allocations: 173 kB / 482 MB, free: 1.605 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001961/0.1378, allocations: 166.6 kB / 482.2 MB, free: 1.441 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002201/0.138, allocations: 102.2 kB / 482.3 MB, free: 1.336 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.1382, allocations: 346.8 kB / 482.6 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004614/0.1387, allocations: 273.1 kB / 482.9 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000543/0.1392, allocations: 351.7 kB / 483.2 MB, free: 364 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007657/0.1469, allocations: 2.082 MB / 485.3 MB, free: 14.22 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.426e-06/0.1469, allocations: 3.938 kB / 485.3 MB, free: 14.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002852/0.1498, allocations: 1.18 MB / 486.5 MB, free: 13.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.653e-05/0.1499, allocations: 41.62 kB / 486.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.1499, allocations: 0 / 486.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002236/0.1521, allocations: 0.5197 MB / 487.1 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003189/0.1525, allocations: 83.83 kB / 487.1 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006508/0.159, allocations: 3.967 MB / 491.1 MB, free: 8.281 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004777/0.1595, allocations: 47.67 kB / 491.1 MB, free: 8.234 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.079e-05/0.1596, allocations: 23.98 kB / 491.2 MB, free: 8.211 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.0003565/0.1599, allocations: 227.9 kB / 491.4 MB, free: 7.973 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.16, allocations: 39.77 kB / 491.4 MB, free: 7.934 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002744/0.1628, allocations: 1.133 MB / 492.6 MB, free: 6.781 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.1628, allocations: 4 kB / 492.6 MB, free: 6.777 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.1628, allocations: 0 / 492.6 MB, free: 6.777 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/0.1628, allocations: 7.984 kB / 492.6 MB, free: 6.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00347/0.1663, allocations: 1.826 MB / 494.4 MB, free: 4.871 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/0.1663, allocations: 0 / 494.4 MB, free: 4.871 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001727/0.1665, allocations: 55.92 kB / 494.5 MB, free: 4.816 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002168/0.1687, allocations: 0.5042 MB / 495 MB, free: 4.309 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.969e-05/0.1688, allocations: 16 kB / 495 MB, free: 4.293 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006056/0.1748, allocations: 3.919 MB / 498.9 MB, free: 244 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.1749, allocations: 4 kB / 498.9 MB, free: 240 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002768/0.1777, allocations: 1.185 MB / 0.4884 GB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001787/0.1779, allocations: 128.7 kB / 0.4885 GB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.08e-05/0.178, allocations: 15.92 kB / 0.4885 GB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003735/0.1783, allocations: 27.92 kB / 0.4885 GB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001581/0.1785, allocations: 36.39 kB / 0.4886 GB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-05/0.1786, allocations: 19.98 kB / 0.4886 GB, free: 14.78 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002844/0.1789, allocations: 218 kB / 0.4888 GB, free: 14.57 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1789, allocations: 0 / 0.4888 GB, free: 14.57 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007105/0.1796, allocations: 183.9 kB / 0.489 GB, free: 14.39 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.003141/0.1827, allocations: 1.771 MB / 0.4907 GB, free: 12.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00207/0.1848, allocations: 0.9925 MB / 0.4917 GB, free: 11.56 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.1848, allocations: 0 / 0.4917 GB, free: 11.56 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001317/0.1862, allocations: 0.6842 MB / 0.4923 GB, free: 10.85 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004596/0.1866, allocations: 44.83 kB / 0.4924 GB, free: 10.81 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009792/0.1964, allocations: 5.262 MB / 0.4975 GB, free: 5.426 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000521/0.197, allocations: 0.8055 MB / 0.4983 GB, free: 4.594 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001885/0.1972, allocations: 51.25 kB / 0.4984 GB, free: 4.543 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002061/0.1974, allocations: 131.4 kB / 0.4985 GB, free: 4.418 MB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1974, allocations: 0 / 0.4985 GB, free: 4.418 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2744/0.4718, allocations: 15.23 MB / 0.5133 GB, free: 44.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/12.1, allocations: 3.844 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)