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.002248/0.002249, allocations: 183.4 kB / 15.76 MB, free: 6.344 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.003/2.003, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001057/0.001057, allocations: 98.86 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2602/0.2602, allocations: 38.06 MB / 356.6 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004566/0.0004567, allocations: 16 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.11, allocations: 56.33 MB / 479.1 MB, free: 1.949 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4906/0.6007, allocations: 94.69 MB / 0.5604 GB, free: 5.059 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002853/0.6011, allocations: 88.14 kB / 0.5605 GB, free: 5.012 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05423/0.6553, allocations: 14.29 MB / 0.5744 GB, free: 9.199 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.6554, allocations: 0 / 0.5744 GB, free: 9.199 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.083e-05/0.6554, allocations: 8 kB / 0.5744 GB, free: 9.191 MB / 378.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.001005/0.6564, allocations: 0.5052 MB / 0.5749 GB, free: 8.652 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.514e-05/0.6565, allocations: 12.03 kB / 0.5749 GB, free: 8.641 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.773e-05/0.6566, allocations: 55.61 kB / 0.575 GB, free: 8.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001359/0.6579, allocations: 99.56 kB / 0.5751 GB, free: 8.492 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005243/0.6585, allocations: 272.5 kB / 0.5753 GB, free: 8.203 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.138e-05/0.6585, allocations: 11.19 kB / 0.5753 GB, free: 8.199 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.149e-05/0.6586, allocations: 15.62 kB / 0.5754 GB, free: 8.188 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007249/0.6593, allocations: 322 kB / 0.5757 GB, free: 7.926 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.826e-05/0.6594, allocations: 0 / 0.5757 GB, free: 7.926 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.968e-05/0.6594, allocations: 10.38 kB / 0.5757 GB, free: 7.922 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001305/0.6596, allocations: 19.98 kB / 0.5757 GB, free: 7.902 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006976/0.6603, allocations: 286.4 kB / 0.576 GB, free: 7.703 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002827/0.6631, allocations: 1.27 MB / 0.5772 GB, free: 6.523 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007678/0.6639, allocations: 244.2 kB / 0.5774 GB, free: 6.328 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.485e-05/0.664, allocations: 3.938 kB / 0.5775 GB, free: 6.324 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.966e-05/0.6641, allocations: 34.62 kB / 0.5775 GB, free: 6.281 MB / 378.7 MB Notification: Performance of pre-optimization done (n=16): time 3.507e-06/0.6641, allocations: 0 / 0.5775 GB, free: 6.281 MB / 378.7 MB Notification: Performance of matching and sorting (n=17): time 0.001286/0.6654, allocations: 435.4 kB / 0.5779 GB, free: 5.957 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.683e-05/0.6655, allocations: 77.11 kB / 0.578 GB, free: 5.863 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002578/0.6657, allocations: 183.1 kB / 0.5781 GB, free: 5.699 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.569e-05/0.6658, allocations: 33.02 kB / 0.5782 GB, free: 5.664 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001326/0.6659, allocations: 227.7 kB / 0.5784 GB, free: 5.453 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.61e-05/0.666, allocations: 60.8 kB / 0.5785 GB, free: 5.402 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.001e-05/0.666, allocations: 3.75 kB / 0.5785 GB, free: 5.402 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.6662, allocations: 322.2 kB / 0.5788 GB, free: 5.082 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002106/0.6664, allocations: 80.48 kB / 0.5788 GB, free: 5.027 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002724/0.6667, allocations: 161.2 kB / 0.579 GB, free: 4.875 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000276/0.667, allocations: 114 kB / 0.5791 GB, free: 4.801 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.667, allocations: 0 / 0.5791 GB, free: 4.801 MB / 378.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006522/0.6677, allocations: 282.3 kB / 0.5794 GB, free: 4.594 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.6677, allocations: 4 kB / 0.5794 GB, free: 4.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.044e-06/0.6677, allocations: 4 kB / 0.5794 GB, free: 4.586 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.6677, allocations: 4 kB / 0.5794 GB, free: 4.582 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004801/0.6682, allocations: 56.19 kB / 0.5794 GB, free: 4.527 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.322e-05/0.6683, allocations: 7.984 kB / 0.5794 GB, free: 4.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002608/0.6685, allocations: 14.92 kB / 0.5795 GB, free: 4.508 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.023e-05/0.6686, allocations: 10.81 kB / 0.5795 GB, free: 4.5 MB / 378.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 () * Number of clocked 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.0002132/0.6688, allocations: 155.7 kB / 0.5796 GB, free: 4.355 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.417e-05/0.6689, allocations: 19.77 kB / 0.5796 GB, free: 4.336 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005773/0.6695, allocations: 235 kB / 0.5799 GB, free: 4.168 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.6695, allocations: 4 kB / 0.5799 GB, free: 4.164 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.6695, allocations: 4 kB / 0.5799 GB, free: 4.16 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.6695, allocations: 0 / 0.5799 GB, free: 4.16 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002058/0.6716, allocations: 0.9496 MB / 0.5808 GB, free: 3.277 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.196e-05/0.6716, allocations: 8.484 kB / 0.5808 GB, free: 3.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002635/0.6719, allocations: 42.98 kB / 0.5808 GB, free: 3.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.229e-05/0.6719, allocations: 7.984 kB / 0.5809 GB, free: 3.223 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.775e-05/0.6719, allocations: 14.56 kB / 0.5809 GB, free: 3.211 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.909e-06/0.672, allocations: 7.953 kB / 0.5809 GB, free: 3.203 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.989e-05/0.672, allocations: 4 kB / 0.5809 GB, free: 3.199 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007744/0.6728, allocations: 0.5973 MB / 0.5815 GB, free: 2.516 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001165/0.6729, allocations: 100.7 kB / 0.5816 GB, free: 2.402 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.16e-05/0.673, allocations: 11.98 kB / 0.5816 GB, free: 2.391 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002506/0.6732, allocations: 11 kB / 0.5816 GB, free: 2.383 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.598e-05/0.6733, allocations: 25.92 kB / 0.5816 GB, free: 2.359 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.409e-05/0.6734, allocations: 8 kB / 0.5816 GB, free: 2.352 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001964/0.6736, allocations: 152.2 kB / 0.5818 GB, free: 2.223 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.6736, allocations: 0 / 0.5818 GB, free: 2.223 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005336/0.6741, allocations: 62.75 kB / 0.5818 GB, free: 2.168 MB / 378.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 () * Number of clocked 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.001565/0.6757, allocations: 2.236 MB / 0.584 GB, free: 15.88 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005728/0.6763, allocations: 208.9 kB / 0.5842 GB, free: 15.73 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.6763, allocations: 0 / 0.5842 GB, free: 15.73 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002391/0.6766, allocations: 99.33 kB / 0.5843 GB, free: 15.66 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004601/0.677, allocations: 50.62 kB / 0.5843 GB, free: 15.61 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003601/0.6807, allocations: 2.817 MB / 0.5871 GB, free: 12.86 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004709/0.6812, allocations: 0.7636 MB / 0.5878 GB, free: 12.08 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001901/0.6814, allocations: 66.72 kB / 0.5879 GB, free: 12.05 MB / 394.7 MB Notification: Performance of SimCode: time 8.91e-07/0.6814, allocations: 0 / 0.5879 GB, free: 12.05 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.487/3.168, allocations: 3.626 MB / 0.5914 GB, free: 8.457 MB / 394.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)