Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.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.GeneratorTest,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest",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.002122/0.002128, allocations: 185.6 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.051/2.051, allocations: 205.2 MB / 218.9 MB, free: 9.133 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.001108/0.001108, allocations: 99.69 kB / 267.1 MB, free: 9.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.274/0.274, allocations: 37.97 MB / 353.1 MB, free: 3.051 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.611e-05/3.644e-05, allocations: 0 / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1125, allocations: 56.31 MB / 473.2 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4741/0.5867, allocations: 94.32 MB / 0.5542 GB, free: 9.363 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003273/0.5871, allocations: 83.95 kB / 0.5543 GB, free: 9.281 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0406/0.6277, allocations: 9.796 MB / 0.5639 GB, free: 15.39 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.6278, allocations: 0 / 0.5639 GB, free: 15.39 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.484e-05/0.6278, allocations: 8 kB / 0.5639 GB, free: 15.38 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0008279/0.6286, allocations: 478.9 kB / 0.5643 GB, free: 14.86 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.6287, allocations: 8.031 kB / 0.5643 GB, free: 14.86 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.195e-05/0.6288, allocations: 54.55 kB / 0.5644 GB, free: 14.79 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001058/0.6299, allocations: 95.56 kB / 0.5645 GB, free: 14.7 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005126/0.6304, allocations: 262.8 kB / 0.5647 GB, free: 14.4 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.471e-05/0.6304, allocations: 12.33 kB / 0.5648 GB, free: 14.39 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.907e-05/0.6305, allocations: 19.97 kB / 0.5648 GB, free: 14.37 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000613/0.6311, allocations: 256 kB / 0.565 GB, free: 14.1 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/0.6312, allocations: 7.844 kB / 0.565 GB, free: 14.09 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.513e-05/0.6312, allocations: 7.984 kB / 0.565 GB, free: 14.08 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.674e-05/0.6313, allocations: 12.33 kB / 0.565 GB, free: 14.07 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005543/0.6318, allocations: 204.8 kB / 0.5652 GB, free: 13.87 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002336/0.6342, allocations: 1.214 MB / 0.5664 GB, free: 12.56 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003137/0.6345, allocations: 121.2 kB / 0.5665 GB, free: 12.42 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000116/0.6347, allocations: 41.78 kB / 0.5666 GB, free: 12.38 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.794e-05/0.6347, allocations: 4 kB / 0.5666 GB, free: 12.37 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.981e-05/0.6348, allocations: 42.48 kB / 0.5666 GB, free: 12.32 MB / 410.7 MB Notification: Performance of pre-optimization done (n=12): time 2.665e-06/0.6348, allocations: 0 / 0.5666 GB, free: 12.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003967/0.6352, allocations: 113.4 kB / 0.5667 GB, free: 12.2 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.763e-05/0.6352, allocations: 81.11 kB / 0.5668 GB, free: 12.11 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002703/0.6355, allocations: 197.6 kB / 0.567 GB, free: 11.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.524e-05/0.6356, allocations: 29.73 kB / 0.567 GB, free: 11.87 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001412/0.6357, allocations: 210.3 kB / 0.5672 GB, free: 11.66 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.312e-05/0.6358, allocations: 43.44 kB / 0.5673 GB, free: 11.62 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.49e-05/0.6358, allocations: 4.219 kB / 0.5673 GB, free: 11.61 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.636, allocations: 318.8 kB / 0.5676 GB, free: 11.29 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001173/0.6361, allocations: 43.94 kB / 0.5676 GB, free: 11.25 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001862/0.6363, allocations: 115.9 kB / 0.5677 GB, free: 11.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001727/0.6365, allocations: 62.77 kB / 0.5678 GB, free: 11.04 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.6365, allocations: 0 / 0.5678 GB, free: 11.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004808/0.637, allocations: 181.6 kB / 0.568 GB, free: 10.86 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/0.637, allocations: 12.03 kB / 0.568 GB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.6371, allocations: 4 kB / 0.568 GB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.01e-05/0.6371, allocations: 4 kB / 0.568 GB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003733/0.6375, allocations: 55.84 kB / 0.568 GB, free: 10.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.305e-05/0.6375, allocations: 7.938 kB / 0.568 GB, free: 10.78 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001941/0.6377, allocations: 27.69 kB / 0.5681 GB, free: 10.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.768e-05/0.6377, allocations: 8 kB / 0.5681 GB, free: 10.74 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (23): * Single equations (assignments): 23 * 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.0001082/0.6379, allocations: 118.8 kB / 0.5682 GB, free: 10.62 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.69e-05/0.6379, allocations: 19.77 kB / 0.5682 GB, free: 10.6 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003401/0.6383, allocations: 131.2 kB / 0.5683 GB, free: 10.47 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.199e-06/0.6383, allocations: 0 / 0.5683 GB, free: 10.47 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/0.6383, allocations: 4 kB / 0.5683 GB, free: 10.46 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.6383, allocations: 0 / 0.5683 GB, free: 10.46 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001035/0.6394, allocations: 0.5383 MB / 0.5689 GB, free: 9.852 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.6394, allocations: 0 / 0.5689 GB, free: 9.852 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002729/0.6397, allocations: 31.92 kB / 0.5689 GB, free: 9.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.626e-06/0.6397, allocations: 4 kB / 0.5689 GB, free: 9.816 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.234e-05/0.6397, allocations: 8 kB / 0.5689 GB, free: 9.809 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.6397, allocations: 0 / 0.5689 GB, free: 9.809 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.895e-06/0.6398, allocations: 4 kB / 0.5689 GB, free: 9.805 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006025/0.6404, allocations: 413.2 kB / 0.5693 GB, free: 9.32 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.481e-05/0.6405, allocations: 92.95 kB / 0.5694 GB, free: 9.211 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.897e-05/0.6405, allocations: 11.98 kB / 0.5694 GB, free: 9.199 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00016/0.6407, allocations: 0 / 0.5694 GB, free: 9.199 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.199e-05/0.6408, allocations: 20.02 kB / 0.5694 GB, free: 9.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-05/0.6408, allocations: 11.97 kB / 0.5694 GB, free: 9.168 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002121/0.641, allocations: 148.4 kB / 0.5696 GB, free: 9.023 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.641, allocations: 0 / 0.5696 GB, free: 9.023 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004551/0.6415, allocations: 51.92 kB / 0.5696 GB, free: 8.973 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (inertia.w,constantTorque.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * 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.001167/0.6427, allocations: 1.422 MB / 0.571 GB, free: 7.477 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003534/0.6431, allocations: 115.8 kB / 0.5711 GB, free: 7.363 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.6431, allocations: 0.75 kB / 0.5711 GB, free: 7.363 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001334/0.6432, allocations: 47.92 kB / 0.5712 GB, free: 7.316 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004329/0.6437, allocations: 31.84 kB / 0.5712 GB, free: 7.285 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001433/0.6451, allocations: 0.4955 MB / 0.5717 GB, free: 6.73 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004307/0.6456, allocations: 0.748 MB / 0.5724 GB, free: 5.957 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001423/0.6457, allocations: 71.28 kB / 0.5725 GB, free: 5.887 MB / 410.7 MB Notification: Performance of SimCode: time 8.41e-07/0.6457, allocations: 0 / 0.5725 GB, free: 5.887 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.586/3.231, allocations: 3.113 MB / 0.5755 GB, free: 2.773 MB / 410.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest.fmu > PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1)