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.001665/0.001665, allocations: 109.1 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.001781/0.001781, allocations: 186.4 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.417/1.417, allocations: 222.9 MB / 241.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05072/0.05072, allocations: 8.093 MB / 299.3 MB, free: 6.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001837/0.001837, allocations: 63.89 kB / 414 MB, free: 22.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08373/0.08558, allocations: 51.52 MB / 465.5 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.TwoSourcesOneLineThreeSensors): time 0.002994/0.08861, allocations: 1.778 MB / 467.3 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002078/0.09071, allocations: 1.469 MB / 468.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.432e-05/0.09082, allocations: 12 kB / 468.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003687/0.0912, allocations: 123.3 kB / 468.9 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002553/0.09148, allocations: 99.3 kB / 469 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001708/0.0932, allocations: 0.9334 MB / 469.9 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003211/0.09353, allocations: 234.9 kB / 470.1 MB, free: 14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002127/0.09375, allocations: 123.7 kB / 470.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001027/0.09386, allocations: 99.64 kB / 470.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002214/0.09409, allocations: 151.4 kB / 470.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.836e-05/0.09413, allocations: 20 kB / 470.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003857/0.09453, allocations: 207.8 kB / 470.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.185e-05/0.09459, allocations: 51.77 kB / 470.8 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001197/0.09471, allocations: 119.4 kB / 470.9 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005388/0.09526, allocations: 414.8 kB / 471.3 MB, free: 12.83 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.09527, allocations: 4 kB / 471.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.09528, allocations: 0 / 471.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.011e-06/0.09529, 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.002213/0.09751, allocations: 0.7756 MB / 472.1 MB, free: 12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.09756, allocations: 11.89 kB / 472.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.903e-05/0.09764, allocations: 66.66 kB / 472.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.077e-05/0.0977, allocations: 32.75 kB / 472.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002437/0.09795, allocations: 240 kB / 472.4 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.796e-05/0.09799, allocations: 24.94 kB / 472.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.233e-05/0.09803, allocations: 24.38 kB / 472.5 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005011/0.09854, allocations: 301.2 kB / 472.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.09856, allocations: 0 / 472.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.82e-05/0.0986, allocations: 8 kB / 472.8 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.09861, allocations: 8 kB / 472.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004583/0.09907, allocations: 290.1 kB / 473.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001405/0.1005, allocations: 0.8932 MB / 474 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005797/0.1011, allocations: 282.2 kB / 474.2 MB, free: 9.738 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002179/0.1013, allocations: 134.1 kB / 474.4 MB, free: 9.605 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.483e-05/0.1014, allocations: 15.92 kB / 474.4 MB, free: 9.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.051e-05/0.1014, allocations: 30.56 kB / 474.4 MB, free: 9.551 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 3.146e-06/0.1014, allocations: 0 / 474.4 MB, free: 9.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001264/0.1027, allocations: 0.5265 MB / 474.9 MB, free: 8.996 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.802e-05/0.1027, allocations: 55.41 kB / 475 MB, free: 8.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001612/0.1029, allocations: 168.9 kB / 475.1 MB, free: 8.758 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.743e-05/0.1029, allocations: 29.7 kB / 475.2 MB, free: 8.723 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.754e-05/0.103, allocations: 148.6 kB / 475.3 MB, free: 8.574 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.18e-05/0.1031, allocations: 91.17 kB / 475.4 MB, free: 8.484 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/0.1032, allocations: 61.69 kB / 475.5 MB, free: 8.418 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.1034, allocations: 326.8 kB / 475.8 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002034/0.1036, allocations: 132 kB / 475.9 MB, free: 7.961 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002026/0.1038, allocations: 132 kB / 476 MB, free: 7.832 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004343/0.1042, allocations: 297 kB / 476.3 MB, free: 7.539 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.1043, allocations: 0 / 476.3 MB, free: 7.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007214/0.105, allocations: 398.2 kB / 476.7 MB, free: 7.141 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.105, allocations: 8 kB / 476.7 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.105, allocations: 3.984 kB / 476.7 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002829/0.1053, allocations: 56.81 kB / 476.8 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002828/0.1056, allocations: 55.91 kB / 476.8 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001596/0.1072, allocations: 1.547 MB / 478.4 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00018/0.1074, allocations: 23.81 kB / 478.4 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.673e-05/0.1074, allocations: 11.98 kB / 478.4 MB, free: 5.297 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.0001425/0.1076, allocations: 145.9 kB / 478.6 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.85e-05/0.1076, allocations: 15.84 kB / 478.6 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007114/0.1084, allocations: 355.6 kB / 478.9 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.1084, allocations: 4 kB / 478.9 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.1084, allocations: 0 / 478.9 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.1084, allocations: 0 / 478.9 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004066/0.1088, allocations: 369.2 kB / 479.3 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1088, allocations: 0 / 479.3 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00018/0.109, allocations: 39.98 kB / 479.3 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002204/0.1092, allocations: 52.75 kB / 479.4 MB, free: 4.262 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.007e-05/0.1093, allocations: 4 kB / 479.4 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001466/0.1107, allocations: 1.539 MB / 480.9 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.1108, allocations: 3.938 kB / 480.9 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006214/0.1114, allocations: 401.8 kB / 481.3 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.063e-05/0.1115, allocations: 96.94 kB / 481.4 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.104e-05/0.1115, allocations: 15.88 kB / 481.4 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000146/0.1116, allocations: 4 kB / 481.4 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.666e-05/0.1117, allocations: 16.05 kB / 481.5 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.81e-05/0.1117, allocations: 8 kB / 481.5 MB, free: 2.012 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000111/0.1118, allocations: 128.9 kB / 481.6 MB, free: 1.887 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1118, allocations: 0 / 481.6 MB, free: 1.887 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003758/0.1122, allocations: 83.88 kB / 481.7 MB, free: 1.805 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.001002/0.1132, allocations: 0.9592 MB / 482.6 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008141/0.1141, allocations: 434.3 kB / 483.1 MB, free: 384 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1141, allocations: 0 / 483.1 MB, free: 384 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004626/0.1145, allocations: 250.6 kB / 483.3 MB, free: 120 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002591/0.1148, allocations: 19.94 kB / 483.3 MB, free: 100 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003406/0.1182, allocations: 2.527 MB / 485.8 MB, free: 13.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003801/0.1186, allocations: 0.7473 MB / 486.6 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001216/0.1188, allocations: 29.52 kB / 486.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001279/0.1189, allocations: 71.41 kB / 486.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1189, allocations: 0 / 486.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02978/0.1487, allocations: 4.882 MB / 491.6 MB, free: 7.832 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.879/10.03, allocations: 15.02 kB / 491.6 MB, free: 7.82 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_TwoSourcesOneLineThreeSensors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_TwoSourcesOneLineThreeSensors.fmu > PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe 2>&1)