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.0009375/0.0009376, allocations: 102.2 kB / 16.07 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 180.1 kB / 16.96 MB, free: 6.879 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.296/1.296, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1675/0.1675, allocations: 8.086 MB / 300.2 MB, free: 2.891 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002898/0.0002899, allocations: 8 kB / 363.6 MB, free: 12.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1026, allocations: 52.52 MB / 416.1 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.TwoSourcesOneLineThreeSensors): time 0.001935/0.1046, allocations: 1.444 MB / 417.6 MB, free: 6.844 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002064/0.1067, allocations: 1.454 MB / 419 MB, free: 5.375 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.526e-05/0.1067, allocations: 4 kB / 419 MB, free: 5.371 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000334/0.1071, allocations: 115.5 kB / 419.1 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002115/0.1073, allocations: 87.5 kB / 419.2 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001475/0.1088, allocations: 0.8718 MB / 420.1 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000318/0.1091, allocations: 226.9 kB / 420.3 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002246/0.1094, allocations: 103.3 kB / 420.4 MB, free: 3.973 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.23e-05/0.1095, allocations: 83.64 kB / 420.5 MB, free: 3.891 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001996/0.1097, allocations: 123.5 kB / 420.6 MB, free: 3.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.916e-05/0.1097, allocations: 15.94 kB / 420.6 MB, free: 3.754 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003512/0.1101, allocations: 195.8 kB / 420.8 MB, free: 3.562 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.249e-05/0.1101, allocations: 43.77 kB / 420.9 MB, free: 3.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001106/0.1102, allocations: 133.1 kB / 421 MB, free: 3.383 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004583/0.1107, allocations: 391 kB / 421.4 MB, free: 3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1107, allocations: 0 / 421.4 MB, free: 3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1107, allocations: 0 / 421.4 MB, free: 3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.1107, allocations: 0 / 421.4 MB, free: 3 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.002025/0.1128, allocations: 0.7256 MB / 422.1 MB, free: 2.227 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.1128, allocations: 8.031 kB / 422.1 MB, free: 2.219 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.435e-05/0.1129, allocations: 62.72 kB / 422.2 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.35e-05/0.113, allocations: 32.64 kB / 422.2 MB, free: 2.117 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002247/0.1132, allocations: 240 kB / 422.4 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.1132, allocations: 24.88 kB / 422.5 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.095e-05/0.1133, allocations: 28.38 kB / 422.5 MB, free: 1.793 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004663/0.1137, allocations: 301.2 kB / 422.8 MB, free: 1.496 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.158e-06/0.1137, allocations: 0 / 422.8 MB, free: 1.496 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.765e-05/0.1138, allocations: 8 kB / 422.8 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.1138, allocations: 8 kB / 422.8 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004336/0.1142, allocations: 294.1 kB / 423.1 MB, free: 1.191 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001326/0.1156, allocations: 0.8968 MB / 424 MB, free: 248 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1818/0.2974, allocations: 281 kB / 424.2 MB, free: 40.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002207/0.2977, allocations: 132.3 kB / 424.4 MB, free: 40.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.642e-05/0.2978, allocations: 12.81 kB / 424.4 MB, free: 40.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.83e-05/0.2978, allocations: 32.31 kB / 424.4 MB, free: 40.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 2.655e-06/0.2978, allocations: 0 / 424.4 MB, free: 40.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001115/0.2989, allocations: 0.5182 MB / 424.9 MB, free: 40.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.684e-05/0.2989, allocations: 55.88 kB / 425 MB, free: 40.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001319/0.2991, allocations: 160.8 kB / 425.2 MB, free: 40.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.939e-05/0.2991, allocations: 32.02 kB / 425.2 MB, free: 40.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.367e-05/0.2992, allocations: 149.1 kB / 425.3 MB, free: 40.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.574e-05/0.2992, allocations: 87.78 kB / 425.4 MB, free: 40.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.164e-05/0.2993, allocations: 37.41 kB / 425.4 MB, free: 40.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.158e-05/0.2993, allocations: 321.9 kB / 425.8 MB, free: 40.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001892/0.2995, allocations: 126.5 kB / 425.9 MB, free: 40.03 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001753/0.2997, allocations: 138.4 kB / 426 MB, free: 40.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000361/0.3001, allocations: 288.3 kB / 426.3 MB, free: 40.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3001, allocations: 0 / 426.3 MB, free: 40.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0005712/0.3007, allocations: 411.9 kB / 426.7 MB, free: 39.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.3007, allocations: 4.875 kB / 426.7 MB, free: 39.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.76e-06/0.3007, allocations: 0 / 426.7 MB, free: 39.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002612/0.301, allocations: 57.56 kB / 426.8 MB, free: 39.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002557/0.3012, allocations: 57.42 kB / 426.8 MB, free: 39.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009945/0.3022, allocations: 1.439 MB / 428.3 MB, free: 38.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001622/0.3024, allocations: 28.34 kB / 428.3 MB, free: 38.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.081e-05/0.3024, allocations: 12.75 kB / 428.3 MB, free: 38.67 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 9.903e-05/0.3026, allocations: 140.2 kB / 428.4 MB, free: 38.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.055e-05/0.3026, allocations: 18.12 kB / 428.5 MB, free: 38.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006002/0.3032, allocations: 356.5 kB / 428.8 MB, free: 38.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.3032, allocations: 3.25 kB / 428.8 MB, free: 38.49 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.3032, allocations: 0.9375 kB / 428.8 MB, free: 38.49 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.3032, allocations: 1.875 kB / 428.8 MB, free: 38.49 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002969/0.3035, allocations: 363.5 kB / 429.2 MB, free: 38.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.3035, allocations: 0 / 429.2 MB, free: 38.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001585/0.3037, allocations: 35.12 kB / 429.2 MB, free: 38.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001928/0.3039, allocations: 63.8 kB / 429.3 MB, free: 38.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.617e-05/0.3039, allocations: 4.062 kB / 429.3 MB, free: 38.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008889/0.3048, allocations: 1.432 MB / 430.7 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3048, allocations: 3.859 kB / 430.7 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004846/0.3053, allocations: 401.4 kB / 431.1 MB, free: 36.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.432e-05/0.3054, allocations: 101.4 kB / 431.2 MB, free: 36.76 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.523e-05/0.3054, allocations: 10.56 kB / 431.2 MB, free: 36.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001413/0.3056, allocations: 11.69 kB / 431.2 MB, free: 36.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.133e-05/0.3056, allocations: 9.547 kB / 431.2 MB, free: 36.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.408e-05/0.3056, allocations: 10.92 kB / 431.2 MB, free: 36.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.813e-05/0.3057, allocations: 127.7 kB / 431.4 MB, free: 36.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3057, allocations: 0 / 431.4 MB, free: 36.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003615/0.3061, allocations: 81.03 kB / 431.4 MB, free: 36.67 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.0007121/0.3068, allocations: 0.9547 MB / 432.4 MB, free: 35.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006864/0.3075, allocations: 419.9 kB / 432.8 MB, free: 35.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3075, allocations: 3.188 kB / 432.8 MB, free: 35.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003927/0.3079, allocations: 255.8 kB / 433.1 MB, free: 35.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002765/0.3082, allocations: 16 kB / 433.1 MB, free: 35.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002575/0.3108, allocations: 2.648 MB / 435.7 MB, free: 34.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001309/0.3109, allocations: 0.7397 MB / 436.5 MB, free: 33.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001333/0.3111, allocations: 31.17 kB / 436.5 MB, free: 33.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.836e-05/0.3112, allocations: 70.41 kB / 436.6 MB, free: 33.61 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3112, allocations: 2.969 kB / 436.6 MB, free: 33.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01416/0.3253, allocations: 4.468 MB / 441 MB, free: 33.25 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002252/0.3256, allocations: 211.9 kB / 441.2 MB, free: 33 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.65/1.976, allocations: 3.219 kB / 441.2 MB, free: 33 MB / 350.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)