Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.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.TwoSourcesTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_TwoSourcesTwoLinesOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_TwoSourcesTwoLinesOneLoad",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.001178/0.001178, allocations: 105.4 kB / 16.45 MB, free: 6.504 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.001237/0.001237, 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.241/1.241, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04586/0.04586, allocations: 8.099 MB / 299.3 MB, free: 6.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001097/0.001097, allocations: 68.08 kB / 414 MB, free: 22.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08583/0.08694, allocations: 51.51 MB / 465.5 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad): time 0.002493/0.08947, allocations: 1.691 MB / 467.2 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001834/0.09133, allocations: 1.555 MB / 468.7 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.79e-05/0.09142, allocations: 8 kB / 468.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003323/0.09176, allocations: 127.3 kB / 468.9 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000282/0.09207, allocations: 131.1 kB / 469 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001454/0.09353, allocations: 0.9217 MB / 469.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003155/0.09385, allocations: 266.7 kB / 470.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001678/0.09403, allocations: 92.56 kB / 470.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001083/0.09415, allocations: 111.6 kB / 470.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001806/0.09433, allocations: 143.4 kB / 470.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.606e-05/0.09438, allocations: 20 kB / 470.5 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003357/0.09472, allocations: 211.8 kB / 470.7 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.79e-05/0.09477, allocations: 55.77 kB / 470.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001158/0.09489, allocations: 123.3 kB / 470.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004704/0.09537, allocations: 426.8 kB / 471.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.09539, allocations: 0 / 471.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.09539, allocations: 0 / 471.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.09541, allocations: 4 kB / 471.3 MB, free: 12.79 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.002313/0.09772, allocations: 0.8495 MB / 472.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.09777, allocations: 11.89 kB / 472.2 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.918e-05/0.09783, allocations: 54.73 kB / 472.3 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.19e-05/0.0979, allocations: 32.73 kB / 472.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002924/0.0982, allocations: 268.7 kB / 472.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.363e-05/0.09823, allocations: 12.81 kB / 472.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.725e-05/0.09827, allocations: 24.38 kB / 472.6 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004244/0.0987, allocations: 287.8 kB / 472.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.09872, allocations: 7.875 kB / 472.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.688e-05/0.09876, allocations: 12 kB / 472.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.09877, allocations: 8 kB / 472.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003734/0.09915, allocations: 273.6 kB / 473.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001369/0.1005, allocations: 1.039 MB / 474.2 MB, free: 9.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008471/0.1014, allocations: 450.7 kB / 474.6 MB, free: 9.266 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000238/0.1016, allocations: 185.3 kB / 474.8 MB, free: 9.082 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.063e-05/0.1017, allocations: 8 kB / 474.8 MB, free: 9.074 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.629e-05/0.1017, allocations: 42.5 kB / 474.9 MB, free: 9.023 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.472e-06/0.1017, allocations: 0 / 474.9 MB, free: 9.023 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002689/0.1044, allocations: 0.9522 MB / 475.8 MB, free: 8.043 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.377e-05/0.1045, allocations: 55.41 kB / 475.9 MB, free: 7.977 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000212/0.1047, allocations: 219.8 kB / 476.1 MB, free: 7.754 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.869e-05/0.1047, allocations: 33.7 kB / 476.1 MB, free: 7.715 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.198e-05/0.1048, allocations: 148.7 kB / 476.3 MB, free: 7.562 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.468e-05/0.1049, allocations: 103.1 kB / 476.4 MB, free: 7.461 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001115/0.105, allocations: 77.64 kB / 476.5 MB, free: 7.379 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.1051, allocations: 330.8 kB / 476.8 MB, free: 7.047 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002393/0.1054, allocations: 175.9 kB / 476.9 MB, free: 6.875 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002395/0.1056, allocations: 179.9 kB / 477.1 MB, free: 6.699 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005095/0.1062, allocations: 389.2 kB / 477.5 MB, free: 6.316 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.1062, allocations: 7.922 kB / 477.5 MB, free: 6.309 MB / 350.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.00128/0.1074, allocations: 0.6618 MB / 478.2 MB, free: 5.637 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.1075, allocations: 10.5 kB / 478.2 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.1075, allocations: 3.984 kB / 478.2 MB, free: 5.625 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009456/0.1084, allocations: 244.6 kB / 478.4 MB, free: 5.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001938/0.1086, allocations: 59.91 kB / 478.5 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003391/0.112, allocations: 2.695 MB / 481.2 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000214/0.1123, allocations: 27.72 kB / 481.2 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.589e-05/0.1123, allocations: 15.98 kB / 481.2 MB, free: 2.449 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 (32): * Single equations (assignments): 31 * 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 {(3,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001288/0.1124, allocations: 147.1 kB / 481.4 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.384e-05/0.1125, allocations: 23.86 kB / 481.4 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001269/0.1138, allocations: 0.5984 MB / 482 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.1138, allocations: 8 kB / 482 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-06/0.1138, allocations: 0 / 482 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.1138, allocations: 3.938 kB / 482 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001615/0.1154, allocations: 1.058 MB / 483.1 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.1154, allocations: 0 / 483.1 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001081/0.1156, allocations: 39.92 kB / 483.1 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008923/0.1165, allocations: 248.5 kB / 483.3 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.456e-05/0.1165, allocations: 7.938 kB / 483.3 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003343/0.1198, allocations: 2.661 MB / 486 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1199, allocations: 3.938 kB / 486 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001182/0.1211, allocations: 0.6536 MB / 486.7 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.305e-05/0.1211, allocations: 100.9 kB / 486.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.155e-05/0.1212, allocations: 8 kB / 486.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002089/0.1214, allocations: 11.98 kB / 486.8 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.224e-05/0.1214, allocations: 31.91 kB / 486.8 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.081e-05/0.1215, allocations: 8 kB / 486.8 MB, free: 12.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001492/0.1216, allocations: 163 kB / 487 MB, free: 12.43 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1216, allocations: 0 / 487 MB, free: 12.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004236/0.1221, allocations: 119.9 kB / 487.1 MB, free: 12.31 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 {(3,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001507/0.1236, allocations: 1.205 MB / 488.3 MB, free: 11.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001223/0.1248, allocations: 0.6193 MB / 488.9 MB, free: 10.44 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.1248, allocations: 4 kB / 488.9 MB, free: 10.44 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007488/0.1256, allocations: 394.9 kB / 489.3 MB, free: 10.04 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003192/0.1259, allocations: 24 kB / 489.3 MB, free: 10.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004909/0.1308, allocations: 3.383 MB / 492.7 MB, free: 6.543 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000315/0.1312, allocations: 0.7524 MB / 493.5 MB, free: 5.762 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001042/0.1313, allocations: 30 kB / 493.5 MB, free: 5.734 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001236/0.1314, allocations: 67.41 kB / 493.6 MB, free: 5.668 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1314, allocations: 0 / 493.6 MB, free: 5.668 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02837/0.1598, allocations: 9.038 MB / 0.4908 GB, free: 12.76 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/10.91, allocations: 18.62 kB / 0.4908 GB, free: 12.74 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad_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_TwoSourcesTwoLinesOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.pipe 2>&1)