Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.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.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",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.001446/0.001446, allocations: 175.5 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.673/1.673, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.0008464/0.0008465, allocations: 82.77 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.4199/0.4199, allocations: 48.78 MB / 364.3 MB, free: 6.875 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.421e-05/3.431e-05, allocations: 7.938 kB / 432.5 MB, free: 16.68 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1196, allocations: 60.25 MB / 492.8 MB, free: 4.305 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3994/0.5191, allocations: 86.36 MB / 0.5656 GB, free: 2.688 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002466/0.5194, allocations: 73.45 kB / 0.5657 GB, free: 2.652 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009103/0.5286, allocations: 3.066 MB / 0.5687 GB, free: 52 kB / 378.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.5286, allocations: 0 / 0.5687 GB, free: 52 kB / 378.7 MB Notification: Performance of Transformations before backend: time 1.552e-05/0.5286, allocations: 8 kB / 0.5687 GB, free: 44 kB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0005843/0.5292, allocations: 452.2 kB / 0.5691 GB, free: 15.57 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/0.5293, allocations: 8.031 kB / 0.5691 GB, free: 15.57 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.885e-05/0.5293, allocations: 42.42 kB / 0.5691 GB, free: 15.52 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.207e-05/0.5294, allocations: 27.67 kB / 0.5692 GB, free: 15.49 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003871/0.5298, allocations: 252.2 kB / 0.5694 GB, free: 15.22 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.345e-05/0.5298, allocations: 7.812 kB / 0.5694 GB, free: 15.21 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.294e-05/0.5299, allocations: 11.81 kB / 0.5694 GB, free: 15.21 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002188/0.5301, allocations: 124.2 kB / 0.5695 GB, free: 15.1 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.5301, allocations: 0 / 0.5695 GB, free: 15.1 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.5301, allocations: 11.44 kB / 0.5696 GB, free: 15.09 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.5301, allocations: 0 / 0.5696 GB, free: 15.09 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001429/0.5303, allocations: 73.31 kB / 0.5696 GB, free: 15.04 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007888/0.5311, allocations: 0.539 MB / 0.5702 GB, free: 14.5 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001709/0.5313, allocations: 100.4 kB / 0.5702 GB, free: 14.42 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.163e-05/0.5314, allocations: 46.11 kB / 0.5703 GB, free: 14.39 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.311e-05/0.5314, allocations: 3.938 kB / 0.5703 GB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.617e-05/0.5314, allocations: 30.56 kB / 0.5703 GB, free: 14.34 MB / 394.7 MB Notification: Performance of pre-optimization done (n=12): time 1.182e-06/0.5314, allocations: 0 / 0.5703 GB, free: 14.34 MB / 394.7 MB Notification: Performance of matching and sorting (n=13): time 0.0007086/0.5321, allocations: 413 kB / 0.5707 GB, free: 13.94 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.937e-05/0.5322, allocations: 55.41 kB / 0.5708 GB, free: 13.88 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001871/0.5324, allocations: 188.7 kB / 0.5709 GB, free: 13.71 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.156e-05/0.5324, allocations: 33.14 kB / 0.571 GB, free: 13.68 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.015e-05/0.5325, allocations: 124.2 kB / 0.5711 GB, free: 13.57 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.87e-05/0.5325, allocations: 45.98 kB / 0.5711 GB, free: 13.54 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.993e-06/0.5326, allocations: 3.375 kB / 0.5711 GB, free: 13.54 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.5327, allocations: 333.1 kB / 0.5715 GB, free: 13.21 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.86e-05/0.5328, allocations: 29.44 kB / 0.5715 GB, free: 13.19 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.152e-05/0.5329, allocations: 54.77 kB / 0.5715 GB, free: 13.14 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.538e-05/0.5329, allocations: 43.67 kB / 0.5716 GB, free: 13.11 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.5329, allocations: 0 / 0.5716 GB, free: 13.11 MB / 394.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002092/0.5332, allocations: 144 kB / 0.5717 GB, free: 12.99 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.5332, allocations: 7.938 kB / 0.5717 GB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.5332, allocations: 3.984 kB / 0.5717 GB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.5332, allocations: 4 kB / 0.5717 GB, free: 12.97 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000184/0.5334, allocations: 36.05 kB / 0.5718 GB, free: 12.94 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.206e-05/0.5334, allocations: 7.984 kB / 0.5718 GB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001024/0.5335, allocations: 7.375 kB / 0.5718 GB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.018e-05/0.5336, allocations: 0 / 0.5718 GB, free: 12.93 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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 9.803e-05/0.5337, allocations: 116.3 kB / 0.5719 GB, free: 12.81 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.042e-05/0.5337, allocations: 19.19 kB / 0.5719 GB, free: 12.79 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002398/0.534, allocations: 135.9 kB / 0.572 GB, free: 12.68 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.534, allocations: 4 kB / 0.5721 GB, free: 12.68 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.534, allocations: 0 / 0.5721 GB, free: 12.68 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.534, allocations: 0 / 0.5721 GB, free: 12.68 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000522/0.5345, allocations: 452 kB / 0.5725 GB, free: 12.24 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.5345, allocations: 0 / 0.5725 GB, free: 12.24 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001749/0.5347, allocations: 31.98 kB / 0.5725 GB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.883e-06/0.5347, allocations: 3.984 kB / 0.5725 GB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.5348, allocations: 7.5 kB / 0.5725 GB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.5348, allocations: 3.938 kB / 0.5725 GB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.5348, allocations: 4 kB / 0.5725 GB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003222/0.5351, allocations: 269.5 kB / 0.5728 GB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.039e-05/0.5352, allocations: 104.3 kB / 0.5729 GB, free: 11.84 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.789e-05/0.5352, allocations: 4 kB / 0.5729 GB, free: 11.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001247/0.5354, allocations: 11.73 kB / 0.5729 GB, free: 11.83 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.308e-05/0.5354, allocations: 4 kB / 0.5729 GB, free: 11.82 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.215e-06/0.5354, allocations: 3.984 kB / 0.5729 GB, free: 11.82 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001452/0.5356, allocations: 156.3 kB / 0.5731 GB, free: 11.69 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5356, allocations: 0 / 0.5731 GB, free: 11.69 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002661/0.5359, allocations: 42.94 kB / 0.5731 GB, free: 11.65 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (generator.phi,generator.omega_m,generator.omega_e_filt) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * 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.0006794/0.5366, allocations: 0.8009 MB / 0.5739 GB, free: 10.86 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000199/0.5368, allocations: 83.88 kB / 0.574 GB, free: 10.8 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.5368, allocations: 4.125 kB / 0.574 GB, free: 10.8 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 7.993e-05/0.5369, allocations: 50.53 kB / 0.574 GB, free: 10.76 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003313/0.5372, allocations: 29.3 kB / 0.574 GB, free: 10.74 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001112/0.5383, allocations: 465.8 kB / 0.5745 GB, free: 10.28 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003608/0.5387, allocations: 0.7361 MB / 0.5752 GB, free: 9.52 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 7.759e-05/0.5388, allocations: 13.33 kB / 0.5752 GB, free: 9.504 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/0.5389, allocations: 55.55 kB / 0.5753 GB, free: 9.48 MB / 394.7 MB Notification: Performance of SimCode: time 7.41e-07/0.5389, allocations: 0 / 0.5753 GB, free: 9.48 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01613/0.555, allocations: 3.3 MB / 0.5785 GB, free: 6.184 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001947/0.5553, allocations: 160.1 kB / 0.5786 GB, free: 5.953 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.691/2.247, allocations: 0 / 0.5786 GB, free: 5.953 MB / 394.7 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe 2>&1)