Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.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.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",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.001055/0.001055, allocations: 175.4 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.512/1.512, allocations: 205.2 MB / 219.4 MB, free: 14.26 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.0008768/0.000877, allocations: 90.66 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2964/0.2964, allocations: 48.77 MB / 364.3 MB, free: 6.879 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.36e-05/3.362e-05, allocations: 4 kB / 432.6 MB, free: 16.68 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.128, allocations: 60.25 MB / 492.8 MB, free: 4.301 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4463/0.5743, allocations: 88.56 MB / 0.5677 GB, free: 0.5352 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002315/0.5746, allocations: 78.81 kB / 0.5678 GB, free: 0.4961 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02143/0.596, allocations: 7.467 MB / 0.5751 GB, free: 10.23 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.5961, allocations: 4 kB / 0.5751 GB, free: 10.23 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.772e-05/0.5961, allocations: 12 kB / 0.5751 GB, free: 10.22 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001046/0.5972, allocations: 0.64 MB / 0.5757 GB, free: 9.562 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.169e-05/0.5972, allocations: 12.02 kB / 0.5758 GB, free: 9.551 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.801e-05/0.5973, allocations: 60.42 kB / 0.5758 GB, free: 9.5 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.384e-05/0.5974, allocations: 59.3 kB / 0.5759 GB, free: 9.441 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005892/0.598, allocations: 375.9 kB / 0.5762 GB, free: 9.07 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.274e-05/0.598, allocations: 24.47 kB / 0.5763 GB, free: 9.055 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.838e-05/0.5981, allocations: 45.53 kB / 0.5763 GB, free: 9.023 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004775/0.5986, allocations: 302.8 kB / 0.5766 GB, free: 8.797 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.69e-05/0.5986, allocations: 0 / 0.5766 GB, free: 8.797 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.803e-05/0.5987, allocations: 15.62 kB / 0.5766 GB, free: 8.793 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.5987, allocations: 11.95 kB / 0.5766 GB, free: 8.781 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003493/0.599, allocations: 196 kB / 0.5768 GB, free: 8.648 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001786/0.6008, allocations: 1.178 MB / 0.578 GB, free: 7.609 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004615/0.6013, allocations: 268.7 kB / 0.5782 GB, free: 7.418 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002159/0.6015, allocations: 124 kB / 0.5783 GB, free: 7.34 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.76e-05/0.6016, allocations: 288 / 0.5783 GB, free: 7.34 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.571e-05/0.6016, allocations: 38.09 kB / 0.5784 GB, free: 7.297 MB / 394.7 MB Notification: Performance of pre-optimization done (n=34): time 1.543e-06/0.6016, allocations: 0 / 0.5784 GB, free: 7.297 MB / 394.7 MB Notification: Performance of matching and sorting (n=36): time 0.001336/0.603, allocations: 0.7789 MB / 0.5791 GB, free: 6.609 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.843e-05/0.603, allocations: 59.34 kB / 0.5792 GB, free: 6.539 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003499/0.6034, allocations: 329.7 kB / 0.5795 GB, free: 6.273 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.621e-05/0.6034, allocations: 28.83 kB / 0.5795 GB, free: 6.242 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/0.6035, allocations: 221.5 kB / 0.5797 GB, free: 6.082 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.487e-05/0.6036, allocations: 136.8 kB / 0.5799 GB, free: 5.965 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.403e-05/0.6037, allocations: 6.312 kB / 0.5799 GB, free: 5.965 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.6038, allocations: 348.6 kB / 0.5802 GB, free: 5.633 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001428/0.604, allocations: 91.62 kB / 0.5803 GB, free: 5.574 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001709/0.6041, allocations: 142.8 kB / 0.5804 GB, free: 5.457 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001825/0.6043, allocations: 105 kB / 0.5805 GB, free: 5.391 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.6043, allocations: 3.938 kB / 0.5805 GB, free: 5.387 MB / 394.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004814/0.6048, allocations: 338.7 kB / 0.5809 GB, free: 5.125 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.6049, allocations: 4 kB / 0.5809 GB, free: 5.121 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.6049, allocations: 4 kB / 0.5809 GB, free: 5.117 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.6049, allocations: 4 kB / 0.5809 GB, free: 5.113 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007321/0.6056, allocations: 151.5 kB / 0.581 GB, free: 4.969 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001068/0.6067, allocations: 1.341 MB / 0.5823 GB, free: 3.523 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002405/0.607, allocations: 15.67 kB / 0.5823 GB, free: 3.512 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.759e-05/0.607, allocations: 15.5 kB / 0.5823 GB, free: 3.5 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 48 * 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.947e-05/0.6071, allocations: 122.6 kB / 0.5825 GB, free: 3.387 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.755e-05/0.6072, allocations: 47.38 kB / 0.5825 GB, free: 3.34 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004902/0.6077, allocations: 316.1 kB / 0.5828 GB, free: 3.117 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.6077, allocations: 7.984 kB / 0.5828 GB, free: 3.109 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.6077, allocations: 3.953 kB / 0.5828 GB, free: 3.105 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.6077, allocations: 4 kB / 0.5828 GB, free: 3.102 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001053/0.6088, allocations: 0.7853 MB / 0.5836 GB, free: 2.434 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.6088, allocations: 0 / 0.5836 GB, free: 2.434 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004323/0.6092, allocations: 87.7 kB / 0.5837 GB, free: 2.352 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.6092, allocations: 3.953 kB / 0.5837 GB, free: 2.348 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.644e-05/0.6093, allocations: 10.67 kB / 0.5837 GB, free: 2.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.6093, allocations: 0 / 0.5837 GB, free: 2.34 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.6093, allocations: 0 / 0.5837 GB, free: 2.34 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006719/0.61, allocations: 0.516 MB / 0.5842 GB, free: 1.926 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001478/0.6101, allocations: 137.5 kB / 0.5843 GB, free: 1.785 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.797e-05/0.6102, allocations: 14.64 kB / 0.5843 GB, free: 1.777 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002259/0.6104, allocations: 11.36 kB / 0.5843 GB, free: 1.77 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.856e-05/0.6105, allocations: 23.72 kB / 0.5844 GB, free: 1.75 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.797e-05/0.6105, allocations: 8 kB / 0.5844 GB, free: 1.742 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002742/0.6108, allocations: 262.9 kB / 0.5846 GB, free: 1.539 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6108, allocations: 4 kB / 0.5846 GB, free: 1.535 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003566/0.6112, allocations: 100.6 kB / 0.5847 GB, free: 1.449 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.omega_e_filt,torqueGen_a.y,torqueGen_b.y,secondaryController.powerOffset) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * 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.001021/0.6122, allocations: 1.058 MB / 0.5858 GB, free: 500 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005517/0.6128, allocations: 270.3 kB / 0.586 GB, free: 300 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.6128, allocations: 0 / 0.586 GB, free: 300 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001965/0.613, allocations: 135.9 kB / 0.5861 GB, free: 200 kB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005149/0.6135, allocations: 67.34 kB / 0.5862 GB, free: 152 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001948/0.6155, allocations: 1.05 MB / 0.5872 GB, free: 15.14 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004254/0.6159, allocations: 0.8391 MB / 0.5881 GB, free: 14.27 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002007/0.6161, allocations: 51.25 kB / 0.5881 GB, free: 14.22 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002221/0.6163, allocations: 160.3 kB / 0.5883 GB, free: 14.17 MB / 410.7 MB Notification: Performance of SimCode: time 4.11e-07/0.6164, allocations: 384 / 0.5883 GB, free: 14.17 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02055/0.6369, allocations: 7.746 MB / 0.5958 GB, free: 6.418 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001545/0.6371, allocations: 160.2 kB / 0.596 GB, free: 6.188 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.206/2.843, allocations: 0 / 0.596 GB, free: 6.188 MB / 410.7 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1)