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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001136/0.001137, allocations: 98.64 kB / 16.5 MB, free: 6.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 194.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.128/1.128, allocations: 205.1 MB / 223.3 MB, free: 12.46 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2235/0.2235, allocations: 48.83 MB / 319.5 MB, free: 11.32 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 64.52 kB / 389.5 MB, free: 49.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0739/0.07517, allocations: 59.15 MB / 448.6 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical1): time 0.002649/0.07785, allocations: 2.181 MB / 450.8 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007559/0.07862, allocations: 0.6047 MB / 451.4 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.706e-05/0.07871, allocations: 0 / 451.4 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.672e-05/0.07881, allocations: 15.86 kB / 451.4 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000162/0.07899, allocations: 59.59 kB / 451.5 MB, free: 7.289 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.523e-05/0.07909, allocations: 35.91 kB / 451.5 MB, free: 7.254 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001766/0.07927, allocations: 203 kB / 451.7 MB, free: 7.055 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.901e-05/0.07938, allocations: 32.3 kB / 451.7 MB, free: 7.023 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001017/0.07949, allocations: 79.66 kB / 451.8 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001088/0.0796, allocations: 83.48 kB / 451.9 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.279e-05/0.07963, allocations: 8 kB / 451.9 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.906e-05/0.07968, allocations: 15.98 kB / 451.9 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.864e-05/0.07972, allocations: 27.86 kB / 451.9 MB, free: 6.812 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.159e-05/0.07979, allocations: 79.53 kB / 452 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001546/0.07995, allocations: 155.6 kB / 452.2 MB, free: 6.582 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.07996, allocations: 0 / 452.2 MB, free: 6.582 MB / 334.1 MB Notification: Performance of FrontEnd: time 6.41e-07/0.07997, allocations: 0 / 452.2 MB, free: 6.582 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.07e-06/0.07998, allocations: 0 / 452.2 MB, free: 6.582 MB / 334.1 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.0005957/0.08058, allocations: 0.497 MB / 452.7 MB, free: 6.039 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.023e-05/0.08061, allocations: 8.031 kB / 452.7 MB, free: 6.031 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.387e-05/0.08065, allocations: 38.75 kB / 452.7 MB, free: 5.984 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.009e-05/0.08073, allocations: 28.59 kB / 452.7 MB, free: 5.957 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000218/0.08095, allocations: 240.9 kB / 453 MB, free: 5.684 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.207e-06/0.08097, allocations: 8.312 kB / 453 MB, free: 5.676 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.543e-05/0.081, allocations: 24.38 kB / 453 MB, free: 5.652 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002029/0.08121, allocations: 131.4 kB / 453.1 MB, free: 5.512 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.08122, allocations: 0 / 453.1 MB, free: 5.512 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.008e-05/0.08124, allocations: 0 / 453.1 MB, free: 5.512 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.08125, allocations: 4 kB / 453.1 MB, free: 5.508 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001642/0.08142, allocations: 84.53 kB / 453.2 MB, free: 5.426 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006255/0.08205, allocations: 0.5605 MB / 453.8 MB, free: 4.805 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002287/0.08229, allocations: 102.6 kB / 453.9 MB, free: 4.695 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.38e-05/0.08238, allocations: 48.84 kB / 453.9 MB, free: 4.645 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.796e-06/0.0824, allocations: 0 / 453.9 MB, free: 4.645 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.217e-05/0.08242, allocations: 46.44 kB / 454 MB, free: 4.59 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 8.91e-07/0.08243, allocations: 0 / 454 MB, free: 4.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006757/0.08311, allocations: 446.3 kB / 454.4 MB, free: 4.102 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.088e-05/0.08315, allocations: 55.41 kB / 454.5 MB, free: 4.035 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001866/0.08334, allocations: 221 kB / 454.7 MB, free: 3.812 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.332e-05/0.08336, allocations: 25.7 kB / 454.7 MB, free: 3.781 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.114e-05/0.08344, allocations: 132.3 kB / 454.8 MB, free: 3.648 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.564e-05/0.08348, allocations: 43.3 kB / 454.9 MB, free: 3.605 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.148e-05/0.08352, allocations: 25.72 kB / 454.9 MB, free: 3.574 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.839e-05/0.08363, allocations: 330.8 kB / 455.2 MB, free: 3.242 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.476e-05/0.08371, allocations: 39.98 kB / 455.3 MB, free: 3.203 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.549e-05/0.0838, allocations: 58.48 kB / 455.3 MB, free: 3.137 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001529/0.08396, allocations: 94.5 kB / 455.4 MB, free: 3.035 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/0.08397, allocations: 0 / 455.4 MB, free: 3.035 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002218/0.08419, allocations: 149.3 kB / 455.6 MB, free: 2.883 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.08421, allocations: 8 kB / 455.6 MB, free: 2.875 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.08422, allocations: 0 / 455.6 MB, free: 2.875 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.065e-06/0.08424, allocations: 3.938 kB / 455.6 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001366/0.08438, allocations: 35.98 kB / 455.6 MB, free: 2.836 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.08439, allocations: 3.938 kB / 455.6 MB, free: 2.832 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.288e-05/0.08449, allocations: 7.984 kB / 455.6 MB, free: 2.824 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/0.0845, allocations: 4 kB / 455.6 MB, free: 2.82 MB / 334.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.744e-05/0.0846, allocations: 129.9 kB / 455.8 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.447e-05/0.08465, allocations: 19.75 kB / 455.8 MB, free: 2.664 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.69e-05/0.08469, allocations: 21.7 kB / 455.8 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.08469, allocations: 4 kB / 455.8 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/0.0847, allocations: 0 / 455.8 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.08471, allocations: 3.938 kB / 455.8 MB, free: 2.641 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005451/0.08526, allocations: 442.3 kB / 456.2 MB, free: 2.152 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.08527, allocations: 0 / 456.2 MB, free: 2.152 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001504/0.08543, allocations: 31.98 kB / 456.3 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.08544, allocations: 0 / 456.3 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/0.08546, allocations: 11.94 kB / 456.3 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.08547, allocations: 0 / 456.3 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.08547, allocations: 0 / 456.3 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003003/0.08578, allocations: 263.1 kB / 456.5 MB, free: 1.836 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.048e-05/0.08586, allocations: 96.91 kB / 456.6 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.666e-05/0.08589, allocations: 8 kB / 456.6 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001153/0.08601, allocations: 4 kB / 456.6 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.581e-05/0.08604, allocations: 7.984 kB / 456.6 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.604e-06/0.08605, allocations: 8 kB / 456.7 MB, free: 1.695 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001253/0.08618, allocations: 168.5 kB / 456.8 MB, free: 1.535 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.08619, allocations: 0 / 456.8 MB, free: 1.535 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002393/0.08643, allocations: 28 kB / 456.8 MB, free: 1.508 MB / 334.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005253/0.08696, allocations: 0.8058 MB / 457.7 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001793/0.08715, allocations: 87.84 kB / 457.7 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.08716, allocations: 0 / 457.7 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.046e-05/0.08725, allocations: 43.98 kB / 457.8 MB, free: 0.543 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003448/0.0876, allocations: 41.47 kB / 457.8 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002278/0.08988, allocations: 2.31 MB / 460.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002221/0.09012, allocations: 0.728 MB / 460.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.135e-05/0.09019, allocations: 13.55 kB / 460.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.011e-05/0.09027, allocations: 59.34 kB / 460.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.09028, allocations: 3.938 kB / 460.9 MB, free: 13.26 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01162/0.1019, allocations: 3.443 MB / 464.4 MB, free: 9.785 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002021/0.1021, allocations: 210.8 kB / 464.6 MB, free: 9.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.589/1.691, allocations: 3.938 kB / 464.6 MB, free: 9.516 MB / 350.1 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/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)