Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.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.TwoSourcesOneLineThreeSensors,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_TwoSourcesOneLineThreeSensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.TwoSourcesOneLineThreeSensors,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_TwoSourcesOneLineThreeSensors",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.001358/0.001358, allocations: 104.1 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.001344/0.001344, 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.281/1.281, 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.04575/0.04575, allocations: 8.11 MB / 299.3 MB, free: 6.598 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 63.91 kB / 414 MB, free: 22.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08717/0.0883, allocations: 51.51 MB / 465.5 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.TwoSourcesOneLineThreeSensors): time 0.00271/0.09106, allocations: 1.783 MB / 467.3 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001752/0.09283, allocations: 1.473 MB / 468.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001101/0.09295, allocations: 7.938 kB / 468.8 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003676/0.09334, allocations: 123.3 kB / 468.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002944/0.09364, allocations: 99.31 kB / 469 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001645/0.0953, allocations: 0.9335 MB / 469.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003234/0.09563, allocations: 234.9 kB / 470.1 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002023/0.09584, allocations: 127.7 kB / 470.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001245/0.09597, allocations: 107.6 kB / 470.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002111/0.09619, allocations: 135.5 kB / 470.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.89e-05/0.09624, allocations: 23.98 kB / 470.5 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003883/0.09664, allocations: 207.8 kB / 470.7 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.774e-05/0.0967, allocations: 51.83 kB / 470.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001183/0.09682, allocations: 119.4 kB / 470.9 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005548/0.09738, allocations: 414.1 kB / 471.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.09739, allocations: 0 / 471.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.0974, allocations: 0 / 471.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.238e-06/0.09741, allocations: 0 / 471.3 MB, free: 12.82 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.002136/0.09956, allocations: 0.7756 MB / 472.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.09961, allocations: 15.88 kB / 472.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.053e-05/0.09967, allocations: 58.73 kB / 472.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.236e-05/0.09974, allocations: 32.75 kB / 472.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002292/0.09998, allocations: 244 kB / 472.4 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.959e-05/0.1, allocations: 20.94 kB / 472.4 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.904e-05/0.1, allocations: 28.31 kB / 472.5 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004416/0.1005, allocations: 301.2 kB / 472.8 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.1005, allocations: 4 kB / 472.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.545e-05/0.1005, allocations: 12 kB / 472.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.1006, allocations: 4 kB / 472.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004397/0.101, allocations: 298.1 kB / 473.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001325/0.1023, allocations: 0.8777 MB / 473.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004831/0.1028, allocations: 290.5 kB / 474.2 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001932/0.103, allocations: 130.1 kB / 474.4 MB, free: 9.594 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.117e-05/0.1031, allocations: 7.938 kB / 474.4 MB, free: 9.586 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.045e-05/0.1031, allocations: 38.5 kB / 474.4 MB, free: 9.539 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.783e-06/0.1031, allocations: 4 kB / 474.4 MB, free: 9.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001103/0.1042, allocations: 0.5149 MB / 474.9 MB, free: 8.992 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.262e-05/0.1043, allocations: 51.41 kB / 475 MB, free: 8.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001426/0.1044, allocations: 176.7 kB / 475.1 MB, free: 8.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/0.1045, allocations: 33.7 kB / 475.2 MB, free: 8.711 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.852e-05/0.1046, allocations: 148.6 kB / 475.3 MB, free: 8.562 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.039e-05/0.1046, allocations: 91.22 kB / 475.4 MB, free: 8.473 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.1047, allocations: 65.67 kB / 475.5 MB, free: 8.402 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.66e-05/0.1048, allocations: 326.8 kB / 475.8 MB, free: 8.074 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001841/0.105, allocations: 128 kB / 475.9 MB, free: 7.949 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001825/0.1052, allocations: 132 kB / 476 MB, free: 7.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003763/0.1056, allocations: 297.1 kB / 476.3 MB, free: 7.527 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.1056, allocations: 4 kB / 476.3 MB, free: 7.523 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006336/0.1062, allocations: 406.1 kB / 476.7 MB, free: 7.117 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.1063, allocations: 6.344 kB / 476.7 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.1063, allocations: 0 / 476.7 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000296/0.1066, allocations: 48.83 kB / 476.8 MB, free: 7.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002747/0.1069, allocations: 71.89 kB / 476.9 MB, free: 6.992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001422/0.1083, allocations: 1.539 MB / 478.4 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001651/0.1085, allocations: 23.81 kB / 478.4 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.448e-05/0.1085, allocations: 12 kB / 478.4 MB, free: 5.281 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 (35): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000123/0.1087, allocations: 141.9 kB / 478.6 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.141e-05/0.1087, allocations: 19.84 kB / 478.6 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006183/0.1093, allocations: 351.7 kB / 478.9 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.125e-06/0.1093, allocations: 0 / 478.9 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.1094, allocations: 0 / 478.9 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.1094, allocations: 4 kB / 478.9 MB, free: 4.754 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003343/0.1097, allocations: 361.2 kB / 479.3 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1097, allocations: 0 / 479.3 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001681/0.1099, allocations: 51.91 kB / 479.3 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001871/0.1101, allocations: 44.83 kB / 479.4 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.089e-05/0.1101, allocations: 8 kB / 479.4 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00126/0.1114, allocations: 1.531 MB / 480.9 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.1114, allocations: 7.922 kB / 480.9 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005461/0.1119, allocations: 402 kB / 481.3 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.487e-05/0.112, allocations: 92.95 kB / 481.4 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.556e-05/0.1121, allocations: 15.88 kB / 481.4 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001368/0.1122, allocations: 4 kB / 481.4 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.766e-05/0.1122, allocations: 19.91 kB / 481.5 MB, free: 2.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.637e-05/0.1123, allocations: 8 kB / 481.5 MB, free: 2.004 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.784e-05/0.1124, allocations: 135.7 kB / 481.6 MB, free: 1.875 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1124, allocations: 0 / 481.6 MB, free: 1.875 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003621/0.1127, allocations: 83.89 kB / 481.7 MB, free: 1.793 MB / 350.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 (25): * Single equations (assignments): 24 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009045/0.1137, allocations: 0.9592 MB / 482.6 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000736/0.1144, allocations: 426.3 kB / 483.1 MB, free: 380 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1144, allocations: 4 kB / 483.1 MB, free: 376 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003868/0.1148, allocations: 258.5 kB / 483.3 MB, free: 104 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002522/0.1151, allocations: 12 kB / 483.3 MB, free: 92 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002979/0.1181, allocations: 2.531 MB / 485.9 MB, free: 13.47 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002727/0.1184, allocations: 0.7434 MB / 486.6 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001152/0.1185, allocations: 37.52 kB / 486.6 MB, free: 12.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.1186, allocations: 71.41 kB / 486.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1186, allocations: 0 / 486.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02481/0.1434, allocations: 4.883 MB / 491.6 MB, free: 7.816 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.795/8.939, allocations: 4.016 kB / 491.6 MB, free: 7.812 MB / 366.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors_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_TwoSourcesOneLineThreeSensors.fmu > PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe 2>&1)