Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.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/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-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(ThermoPower.Test.ElectricalComponents.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",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.001588/0.001588, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.511/1.511, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.0009307/0.000931, allocations: 82.72 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2675/0.2675, allocations: 48.79 MB / 364.3 MB, free: 6.863 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.606e-05/2.607e-05, allocations: 4 kB / 432.6 MB, free: 16.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1103, allocations: 60.25 MB / 492.8 MB, free: 4.281 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3694/0.4797, allocations: 86.73 MB / 0.566 GB, free: 2.309 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001928/0.4799, allocations: 79.38 kB / 0.566 GB, free: 2.27 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0111/0.491, allocations: 3.953 MB / 0.5699 GB, free: 14.94 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4911, allocations: 0 / 0.5699 GB, free: 14.94 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.714e-05/0.4911, allocations: 8 kB / 0.5699 GB, free: 14.93 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0006618/0.4918, allocations: 0.4898 MB / 0.5704 GB, free: 14.41 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.4918, allocations: 8.031 kB / 0.5704 GB, free: 14.4 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.074e-05/0.4919, allocations: 49.17 kB / 0.5704 GB, free: 14.36 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.658e-05/0.492, allocations: 35.58 kB / 0.5705 GB, free: 14.32 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003629/0.4923, allocations: 259.7 kB / 0.5707 GB, free: 14.05 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.057e-05/0.4924, allocations: 17.88 kB / 0.5707 GB, free: 14.04 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.142e-05/0.4924, allocations: 18.81 kB / 0.5707 GB, free: 14.02 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002667/0.4927, allocations: 155.5 kB / 0.5709 GB, free: 13.9 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.4927, allocations: 0 / 0.5709 GB, free: 13.9 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.653e-05/0.4927, allocations: 7.484 kB / 0.5709 GB, free: 13.89 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.978e-06/0.4928, allocations: 7.953 kB / 0.5709 GB, free: 13.89 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001842/0.4929, allocations: 108.8 kB / 0.571 GB, free: 13.81 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008823/0.4938, allocations: 0.653 MB / 0.5716 GB, free: 13.19 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002107/0.4941, allocations: 130.5 kB / 0.5718 GB, free: 13.09 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001075/0.4942, allocations: 74.2 kB / 0.5718 GB, free: 13.04 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.977e-05/0.4942, allocations: 0 / 0.5718 GB, free: 13.04 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.326e-05/0.4942, allocations: 30.78 kB / 0.5719 GB, free: 13 MB / 394.7 MB Notification: Performance of pre-optimization done (n=18): time 2.445e-06/0.4942, allocations: 0 / 0.5719 GB, free: 13 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008528/0.4951, allocations: 499.3 kB / 0.5723 GB, free: 12.53 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.801e-05/0.4952, allocations: 59.39 kB / 0.5724 GB, free: 12.46 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002402/0.4954, allocations: 201 kB / 0.5726 GB, free: 12.29 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.606e-05/0.4955, allocations: 29.08 kB / 0.5726 GB, free: 12.25 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.976e-05/0.4956, allocations: 144.7 kB / 0.5728 GB, free: 12.14 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.294e-05/0.4956, allocations: 71.48 kB / 0.5728 GB, free: 12.07 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.626e-06/0.4956, allocations: 3.375 kB / 0.5728 GB, free: 12.07 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.4958, allocations: 339.9 kB / 0.5732 GB, free: 11.74 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.353e-05/0.4959, allocations: 51.62 kB / 0.5732 GB, free: 11.71 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.296e-05/0.496, allocations: 65.09 kB / 0.5733 GB, free: 11.66 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.758e-05/0.4961, allocations: 57.64 kB / 0.5733 GB, free: 11.62 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.4961, allocations: 0 / 0.5733 GB, free: 11.62 MB / 394.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002818/0.4964, allocations: 182.8 kB / 0.5735 GB, free: 11.47 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.4964, allocations: 4 kB / 0.5735 GB, free: 11.47 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.4964, allocations: 32 / 0.5735 GB, free: 11.47 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.4964, allocations: 8 kB / 0.5735 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003992/0.4969, allocations: 67.94 kB / 0.5736 GB, free: 11.39 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001012/0.4979, allocations: 1.335 MB / 0.5749 GB, free: 9.949 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001444/0.498, allocations: 11.53 kB / 0.5749 GB, free: 9.941 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.517e-05/0.4981, allocations: 4 kB / 0.5749 GB, free: 9.938 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 7.89e-05/0.4981, allocations: 116.6 kB / 0.575 GB, free: 9.824 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.488e-05/0.4982, allocations: 23.83 kB / 0.575 GB, free: 9.801 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002746/0.4985, allocations: 192.1 kB / 0.5752 GB, free: 9.66 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-06/0.4985, allocations: 0 / 0.5752 GB, free: 9.66 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-06/0.4985, allocations: 0 / 0.5752 GB, free: 9.66 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.36e-05/0.4985, allocations: 7.984 kB / 0.5752 GB, free: 9.652 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006292/0.4992, allocations: 0.5234 MB / 0.5757 GB, free: 9.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.4992, allocations: 0 / 0.5757 GB, free: 9.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002662/0.4994, allocations: 51.91 kB / 0.5758 GB, free: 9.109 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.4995, allocations: 8 kB / 0.5758 GB, free: 9.102 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.459e-05/0.4995, allocations: 3.188 kB / 0.5758 GB, free: 9.102 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.4995, allocations: 0 / 0.5758 GB, free: 9.102 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.4995, allocations: 0 / 0.5758 GB, free: 9.102 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003689/0.4999, allocations: 335 kB / 0.5761 GB, free: 8.816 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001022/0.5, allocations: 112.6 kB / 0.5762 GB, free: 8.695 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.591e-05/0.5, allocations: 6.875 kB / 0.5762 GB, free: 8.691 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000157/0.5002, allocations: 18.23 kB / 0.5762 GB, free: 8.676 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.639e-05/0.5002, allocations: 10.8 kB / 0.5763 GB, free: 8.668 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.069e-05/0.5002, allocations: 4 kB / 0.5763 GB, free: 8.664 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000146/0.5004, allocations: 168.4 kB / 0.5764 GB, free: 8.523 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5004, allocations: 0 / 0.5764 GB, free: 8.523 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002892/0.5007, allocations: 62.95 kB / 0.5765 GB, free: 8.469 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (generator.phi,generator.omega_m,generator.omega_e_filt,grid.port.theta) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 21 * 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 Backend phase and start with SimCode phase: time 0.0007172/0.5014, allocations: 0.8634 MB / 0.5773 GB, free: 7.637 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000346/0.5018, allocations: 138.3 kB / 0.5775 GB, free: 7.535 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.5018, allocations: 0 / 0.5775 GB, free: 7.535 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001122/0.5019, allocations: 65.44 kB / 0.5775 GB, free: 7.488 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002918/0.5022, allocations: 44.5 kB / 0.5776 GB, free: 7.457 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001143/0.5034, allocations: 0.5983 MB / 0.5781 GB, free: 6.859 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003387/0.5037, allocations: 0.7635 MB / 0.5789 GB, free: 6.07 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001028/0.5038, allocations: 30.05 kB / 0.5789 GB, free: 6.043 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001169/0.5039, allocations: 83.28 kB / 0.579 GB, free: 6.012 MB / 394.7 MB Notification: Performance of SimCode: time 4.1e-07/0.504, allocations: 0 / 0.579 GB, free: 6.012 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01559/0.5196, allocations: 4.421 MB / 0.5833 GB, free: 1.594 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001676/0.5198, allocations: 164.4 kB / 0.5835 GB, free: 1.359 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.965/2.485, allocations: 0 / 0.5835 GB, free: 1.359 MB / 394.7 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1)