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.001493/0.001493, allocations: 180.2 kB / 16.38 MB, free: 5.766 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.495/1.495, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001041/0.001041, allocations: 92.14 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4211/0.4211, allocations: 48.77 MB / 367.9 MB, free: 47.44 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003598/0.00036, allocations: 8 kB / 438.7 MB, free: 10.9 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1357, allocations: 60.24 MB / 499 MB, free: 14.52 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3424/0.4781, allocations: 86.71 MB / 0.572 GB, free: 11.91 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002589/0.4784, allocations: 71.95 kB / 0.572 GB, free: 11.84 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009918/0.4883, allocations: 3.98 MB / 0.5759 GB, free: 7.922 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4884, allocations: 0 / 0.5759 GB, free: 7.922 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.691e-05/0.4884, allocations: 11.94 kB / 0.5759 GB, free: 7.91 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.0006545/0.4891, allocations: 0.5228 MB / 0.5764 GB, free: 7.344 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.4891, allocations: 12.03 kB / 0.5764 GB, free: 7.332 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.018e-05/0.4891, allocations: 50.55 kB / 0.5765 GB, free: 7.273 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.395e-05/0.4892, allocations: 30.56 kB / 0.5765 GB, free: 7.246 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002799/0.4895, allocations: 263.9 kB / 0.5768 GB, free: 6.953 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.21e-05/0.4895, allocations: 12 kB / 0.5768 GB, free: 6.941 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.25e-05/0.4895, allocations: 20 kB / 0.5768 GB, free: 6.922 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002811/0.4898, allocations: 178.5 kB / 0.577 GB, free: 6.738 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.4899, allocations: 3.938 kB / 0.577 GB, free: 6.734 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.4899, allocations: 8 kB / 0.577 GB, free: 6.727 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.4899, allocations: 7.953 kB / 0.577 GB, free: 6.719 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002331/0.4901, allocations: 127.8 kB / 0.5771 GB, free: 6.594 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007431/0.4909, allocations: 0.6517 MB / 0.5778 GB, free: 5.883 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002252/0.4911, allocations: 148.9 kB / 0.5779 GB, free: 5.73 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.4911, allocations: 4 kB / 0.5779 GB, free: 5.727 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.281e-05/0.4912, allocations: 30.56 kB / 0.5779 GB, free: 5.688 MB / 394.7 MB Notification: Performance of pre-optimization done (n=18): time 1.954e-06/0.4912, allocations: 7.984 kB / 0.5779 GB, free: 5.68 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.0009463/0.4921, allocations: 0.5943 MB / 0.5785 GB, free: 5.031 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.32e-05/0.4922, allocations: 55.34 kB / 0.5786 GB, free: 4.965 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001598/0.4923, allocations: 208.2 kB / 0.5788 GB, free: 4.758 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.353e-05/0.4923, allocations: 29.7 kB / 0.5788 GB, free: 4.723 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.539e-05/0.4924, allocations: 140.4 kB / 0.5789 GB, free: 4.582 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.528e-05/0.4924, allocations: 63.02 kB / 0.579 GB, free: 4.52 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.657e-06/0.4925, allocations: 4 kB / 0.579 GB, free: 4.516 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.33e-05/0.4925, allocations: 342.8 kB / 0.5793 GB, free: 4.172 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.4926, allocations: 65.56 kB / 0.5794 GB, free: 4.113 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001098/0.4928, allocations: 75.86 kB / 0.5795 GB, free: 4.035 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001205/0.4929, allocations: 67.98 kB / 0.5795 GB, free: 3.969 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.62e-07/0.4929, allocations: 0 / 0.5795 GB, free: 3.969 MB / 394.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002983/0.4932, allocations: 209.4 kB / 0.5797 GB, free: 3.762 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.4932, allocations: 4 kB / 0.5797 GB, free: 3.758 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.4932, allocations: 4.016 kB / 0.5797 GB, free: 3.754 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.4933, allocations: 8 kB / 0.5797 GB, free: 3.746 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003748/0.4936, allocations: 68.11 kB / 0.5798 GB, free: 3.68 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007263/0.4944, allocations: 1.335 MB / 0.5811 GB, free: 2.207 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001403/0.4945, allocations: 23.86 kB / 0.5811 GB, free: 2.184 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.389e-05/0.4946, allocations: 8 kB / 0.5811 GB, free: 2.176 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 () * Number of clocked 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 9.487e-05/0.4947, allocations: 133.7 kB / 0.5813 GB, free: 2.035 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.969e-05/0.4947, allocations: 25.28 kB / 0.5813 GB, free: 2.012 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003178/0.495, allocations: 207.8 kB / 0.5815 GB, free: 1.809 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.495, allocations: 4 kB / 0.5815 GB, free: 1.805 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.12e-07/0.495, allocations: 0 / 0.5815 GB, free: 1.805 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.4951, allocations: 3.984 kB / 0.5815 GB, free: 1.801 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005855/0.4956, allocations: 0.5679 MB / 0.582 GB, free: 1.18 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.4957, allocations: 0 / 0.582 GB, free: 1.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002281/0.4959, allocations: 43.97 kB / 0.5821 GB, free: 1.137 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.4959, allocations: 2 kB / 0.5821 GB, free: 1.137 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.4959, allocations: 8 kB / 0.5821 GB, free: 1.129 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.4959, allocations: 4 kB / 0.5821 GB, free: 1.125 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.4959, allocations: 3.938 kB / 0.5821 GB, free: 1.121 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004006/0.4963, allocations: 371 kB / 0.5825 GB, free: 0.7422 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.857e-05/0.4964, allocations: 112.8 kB / 0.5826 GB, free: 0.6133 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.872e-05/0.4965, allocations: 11.94 kB / 0.5826 GB, free: 0.6016 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001491/0.4966, allocations: 4 kB / 0.5826 GB, free: 0.5977 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.653e-05/0.4967, allocations: 19.97 kB / 0.5826 GB, free: 0.5781 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.198e-06/0.4967, allocations: 4 kB / 0.5826 GB, free: 0.5742 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001109/0.4968, allocations: 164.5 kB / 0.5828 GB, free: 420 kB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4968, allocations: 0 / 0.5828 GB, free: 420 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002862/0.4971, allocations: 56 kB / 0.5828 GB, free: 364 kB / 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 () * Number of clocked 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.0007718/0.4979, allocations: 0.9133 MB / 0.5837 GB, free: 15.42 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004277/0.4983, allocations: 168.9 kB / 0.5839 GB, free: 15.25 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.4983, allocations: 4.062 kB / 0.5839 GB, free: 15.25 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001638/0.4985, allocations: 87.84 kB / 0.584 GB, free: 15.16 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003375/0.4989, allocations: 32.41 kB / 0.584 GB, free: 15.13 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00169/0.5006, allocations: 1.229 MB / 0.5852 GB, free: 13.86 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003196/0.5009, allocations: 0.7638 MB / 0.5859 GB, free: 13.07 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001161/0.501, allocations: 25.92 kB / 0.586 GB, free: 13.05 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001382/0.5012, allocations: 79.41 kB / 0.586 GB, free: 12.97 MB / 410.7 MB Notification: Performance of SimCode: time 3.21e-07/0.5012, allocations: 0 / 0.586 GB, free: 12.97 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01582/0.517, allocations: 4.372 MB / 0.5903 GB, free: 8.699 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001989/0.5172, allocations: 180.3 kB / 0.5905 GB, free: 8.457 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.901/2.418, allocations: 0 / 0.5905 GB, free: 8.457 MB / 410.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)