Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Generic.Test.FixedCurrentTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Test_FixedCurrentTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Test_FixedCurrentTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002467/0.002466, allocations: 185 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.025/2.025, allocations: 205.2 MB / 218.9 MB, free: 9.137 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001218/0.001218, allocations: 96.31 kB / 267.1 MB, free: 9.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.275/0.275, allocations: 37.97 MB / 353.1 MB, free: 3.047 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.707e-05/3.725e-05, allocations: 8 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1341, allocations: 56.32 MB / 473.2 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4903/0.6245, allocations: 94.6 MB / 0.5545 GB, free: 9.066 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003341/0.6249, allocations: 83.94 kB / 0.5546 GB, free: 8.984 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06065/0.6856, allocations: 14.22 MB / 0.5685 GB, free: 10.61 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.6856, allocations: 0 / 0.5685 GB, free: 10.61 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.448e-05/0.6856, allocations: 8 kB / 0.5685 GB, free: 10.6 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0009452/0.6866, allocations: 498.1 kB / 0.569 GB, free: 10.07 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.6867, allocations: 8.031 kB / 0.569 GB, free: 10.06 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.88e-05/0.6868, allocations: 54.55 kB / 0.569 GB, free: 10 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001341/0.6881, allocations: 103.5 kB / 0.5691 GB, free: 9.898 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005624/0.6887, allocations: 259.4 kB / 0.5694 GB, free: 9.605 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.475e-05/0.6888, allocations: 12 kB / 0.5694 GB, free: 9.594 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.423e-05/0.6888, allocations: 19.98 kB / 0.5694 GB, free: 9.574 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007582/0.6896, allocations: 309.6 kB / 0.5697 GB, free: 9.246 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.067e-05/0.6896, allocations: 0 / 0.5697 GB, free: 9.246 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.337e-05/0.6897, allocations: 8 kB / 0.5697 GB, free: 9.238 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001449/0.6899, allocations: 27.97 kB / 0.5697 GB, free: 9.211 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007395/0.6906, allocations: 275.7 kB / 0.57 GB, free: 8.941 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002933/0.6936, allocations: 1.283 MB / 0.5712 GB, free: 7.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008018/0.6944, allocations: 233 kB / 0.5715 GB, free: 7.324 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002522/0.6947, allocations: 101.7 kB / 0.5716 GB, free: 7.219 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.071e-05/0.6948, allocations: 7.984 kB / 0.5716 GB, free: 7.211 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.684e-05/0.6948, allocations: 34.56 kB / 0.5716 GB, free: 7.168 MB / 410.7 MB Notification: Performance of pre-optimization done (n=16): time 3.426e-06/0.6948, allocations: 0 / 0.5716 GB, free: 7.168 MB / 410.7 MB Notification: Performance of matching and sorting (n=17): time 0.001156/0.696, allocations: 356.5 kB / 0.5719 GB, free: 6.812 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.897e-05/0.6961, allocations: 81.14 kB / 0.572 GB, free: 6.715 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002932/0.6964, allocations: 181.5 kB / 0.5722 GB, free: 6.527 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.372e-05/0.6965, allocations: 29.7 kB / 0.5722 GB, free: 6.492 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001475/0.6966, allocations: 218.3 kB / 0.5724 GB, free: 6.277 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.136e-05/0.6967, allocations: 59.11 kB / 0.5725 GB, free: 6.219 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.066e-05/0.6967, allocations: 8 kB / 0.5725 GB, free: 6.211 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.6969, allocations: 318.8 kB / 0.5728 GB, free: 5.891 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002261/0.6971, allocations: 84.44 kB / 0.5729 GB, free: 5.805 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002919/0.6974, allocations: 151.3 kB / 0.573 GB, free: 5.629 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003125/0.6978, allocations: 107.9 kB / 0.5731 GB, free: 5.523 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.6978, allocations: 0 / 0.5731 GB, free: 5.523 MB / 410.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0007121/0.6985, allocations: 277.1 kB / 0.5734 GB, free: 5.246 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.6986, allocations: 8.281 kB / 0.5734 GB, free: 5.238 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.683e-05/0.6986, allocations: 8 kB / 0.5734 GB, free: 5.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.436e-05/0.6986, allocations: 4 kB / 0.5734 GB, free: 5.227 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005049/0.6991, allocations: 63.83 kB / 0.5735 GB, free: 5.164 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.887e-05/0.6992, allocations: 4 kB / 0.5735 GB, free: 5.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003004/0.6995, allocations: 15.98 kB / 0.5735 GB, free: 5.145 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.975e-05/0.6995, allocations: 8 kB / 0.5735 GB, free: 5.137 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001487/0.6997, allocations: 120.9 kB / 0.5736 GB, free: 5.012 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.154e-05/0.6998, allocations: 23.75 kB / 0.5736 GB, free: 4.988 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006818/0.7005, allocations: 224.4 kB / 0.5738 GB, free: 4.762 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.816e-06/0.7005, allocations: 4 kB / 0.5738 GB, free: 4.758 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.7005, allocations: 0 / 0.5738 GB, free: 4.758 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.818e-06/0.7005, allocations: 3.984 kB / 0.5739 GB, free: 4.754 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002404/0.703, allocations: 0.9558 MB / 0.5748 GB, free: 3.695 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.285e-05/0.703, allocations: 4 kB / 0.5748 GB, free: 3.691 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003094/0.7033, allocations: 35.86 kB / 0.5748 GB, free: 3.656 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-05/0.7034, allocations: 8 kB / 0.5748 GB, free: 3.648 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.258e-05/0.7034, allocations: 8 kB / 0.5748 GB, free: 3.641 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.882e-05/0.7034, allocations: 19.88 kB / 0.5749 GB, free: 3.621 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.867e-06/0.7035, allocations: 4 kB / 0.5749 GB, free: 3.617 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008966/0.7044, allocations: 0.5932 MB / 0.5754 GB, free: 2.863 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001337/0.7045, allocations: 96.92 kB / 0.5755 GB, free: 2.75 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.199e-05/0.7046, allocations: 11.98 kB / 0.5755 GB, free: 2.738 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002745/0.7049, allocations: 8 kB / 0.5756 GB, free: 2.73 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.729e-05/0.705, allocations: 27.88 kB / 0.5756 GB, free: 2.703 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.768e-05/0.705, allocations: 8 kB / 0.5756 GB, free: 2.695 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002332/0.7052, allocations: 151 kB / 0.5757 GB, free: 2.547 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.7053, allocations: 0 / 0.5757 GB, free: 2.547 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005979/0.7059, allocations: 67.92 kB / 0.5758 GB, free: 2.48 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001905/0.7078, allocations: 2.247 MB / 0.578 GB, free: 96 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006599/0.7085, allocations: 207.6 kB / 0.5782 GB, free: 15.89 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.7085, allocations: 0 / 0.5782 GB, free: 15.89 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002583/0.7088, allocations: 100.6 kB / 0.5783 GB, free: 15.79 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005194/0.7093, allocations: 36.17 kB / 0.5783 GB, free: 15.75 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001722/0.7111, allocations: 0.5316 MB / 0.5788 GB, free: 15.13 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005157/0.7117, allocations: 0.7675 MB / 0.5796 GB, free: 14.34 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002143/0.7119, allocations: 70.14 kB / 0.5797 GB, free: 14.27 MB / 426.7 MB Notification: Performance of SimCode: time 1.272e-06/0.7119, allocations: 3.938 kB / 0.5797 GB, free: 14.27 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.511/3.223, allocations: 3.677 MB / 0.5832 GB, free: 10.59 MB / 426.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Generic.Test.FixedCurrentTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Generic_Test_FixedCurrentTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Generic_Test_FixedCurrentTest.fmu > PowerSystems_cpp_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1)