Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.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.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",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.001108/0.001108, allocations: 117.4 kB / 16.63 MB, free: 6.812 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.001148/0.001148, allocations: 189.8 kB / 17.55 MB, free: 5.934 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.16/1.16, allocations: 205.1 MB / 223.4 MB, free: 12.45 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2322/0.2322, allocations: 48.83 MB / 319.6 MB, free: 11.27 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.001326/0.001326, allocations: 66.39 kB / 389.6 MB, free: 48.91 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07476/0.07609, allocations: 59.16 MB / 448.8 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical5): time 0.003666/0.07978, allocations: 2.741 MB / 451.5 MB, free: 7.262 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001255/0.08106, allocations: 0.7643 MB / 452.3 MB, free: 6.488 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002047/0.08131, allocations: 4 kB / 452.3 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001434/0.08146, allocations: 35.64 kB / 452.4 MB, free: 6.449 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003037/0.08177, allocations: 103.2 kB / 452.5 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000194/0.08197, allocations: 75.88 kB / 452.5 MB, free: 6.273 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003998/0.08238, allocations: 390.2 kB / 452.9 MB, free: 5.891 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001803/0.08257, allocations: 93.42 kB / 453 MB, free: 5.801 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002258/0.08281, allocations: 155.3 kB / 453.2 MB, free: 5.648 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002042/0.08302, allocations: 163.1 kB / 453.3 MB, free: 5.488 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.401e-05/0.08307, allocations: 24 kB / 453.3 MB, free: 5.465 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.609e-05/0.08315, allocations: 32 kB / 453.4 MB, free: 5.434 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.086e-05/0.08321, allocations: 63.75 kB / 453.4 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001325/0.08335, allocations: 167 kB / 453.6 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002821/0.08363, allocations: 323 kB / 453.9 MB, free: 4.891 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.08365, allocations: 4 kB / 453.9 MB, free: 4.887 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.51e-07/0.08365, allocations: 0 / 453.9 MB, free: 4.887 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.261e-06/0.08366, allocations: 0 / 453.9 MB, free: 4.887 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0009409/0.08461, allocations: 0.6697 MB / 454.6 MB, free: 4.168 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.08465, allocations: 11.89 kB / 454.6 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.583e-05/0.08471, allocations: 58.73 kB / 454.6 MB, free: 4.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001033/0.08482, allocations: 40.47 kB / 454.7 MB, free: 4.051 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003235/0.08515, allocations: 316 kB / 455 MB, free: 3.699 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.734e-05/0.08518, allocations: 16.81 kB / 455 MB, free: 3.684 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.291e-05/0.08522, allocations: 24.38 kB / 455 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000384/0.08561, allocations: 250.8 kB / 455.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.08564, allocations: 0 / 455.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.821e-05/0.08566, allocations: 8 kB / 455.3 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.08567, allocations: 8 kB / 455.3 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003384/0.08602, allocations: 173.6 kB / 455.5 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.08705, allocations: 0.8633 MB / 456.3 MB, free: 2.285 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002821/0.08734, allocations: 190.6 kB / 456.5 MB, free: 2.09 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001778/0.08753, allocations: 108.8 kB / 456.6 MB, free: 1.98 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.121e-05/0.08756, allocations: 0 / 456.6 MB, free: 1.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.111e-05/0.08759, allocations: 46.5 kB / 456.7 MB, free: 1.926 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.002e-06/0.08759, allocations: 0 / 456.7 MB, free: 1.926 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.001199/0.0888, allocations: 0.7371 MB / 457.4 MB, free: 1.141 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.588e-05/0.08883, allocations: 59.34 kB / 457.5 MB, free: 1.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002518/0.08909, allocations: 300.5 kB / 457.8 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.08912, allocations: 33.7 kB / 457.8 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.533e-05/0.08922, allocations: 180.6 kB / 458 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.737e-05/0.08928, allocations: 94.55 kB / 458.1 MB, free: 472 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.695e-05/0.08935, allocations: 57.64 kB / 458.1 MB, free: 408 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.08946, allocations: 342.8 kB / 458.4 MB, free: 56 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001653/0.08963, allocations: 80.03 kB / 458.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001628/0.0898, allocations: 110.7 kB / 458.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003087/0.09012, allocations: 192.1 kB / 458.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.09013, allocations: 0 / 458.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005581/0.09069, allocations: 322.9 kB / 459.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.09071, allocations: 4 kB / 459.1 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.09073, allocations: 4 kB / 459.1 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002313/0.09096, allocations: 56.88 kB / 459.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003358/0.09131, allocations: 75.89 kB / 459.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001994/0.09331, allocations: 3.024 MB / 462.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001794/0.0935, allocations: 23.86 kB / 462.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.562e-05/0.09353, allocations: 12 kB / 462.3 MB, free: 11.85 MB / 350.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 (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000117/0.09365, allocations: 146.9 kB / 462.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.959e-05/0.09371, allocations: 31.62 kB / 462.5 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004115/0.09412, allocations: 261.3 kB / 462.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.09414, allocations: 7.984 kB / 462.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.051e-06/0.09414, allocations: 0 / 462.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.09415, allocations: 3.938 kB / 462.8 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007795/0.09494, allocations: 0.6622 MB / 463.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.09495, allocations: 0 / 463.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002943/0.09525, allocations: 63.91 kB / 463.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.09526, allocations: 4 kB / 463.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.912e-05/0.09529, allocations: 11.92 kB / 463.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.09529, allocations: 0 / 463.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.0953, allocations: 4 kB / 463.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005615/0.09586, allocations: 451.5 kB / 464 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001026/0.09598, allocations: 120.8 kB / 464.1 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.751e-05/0.09602, allocations: 15.88 kB / 464.1 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000184/0.09621, allocations: 12.23 kB / 464.1 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.687e-05/0.09626, allocations: 19.97 kB / 464.1 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/0.09628, allocations: 12 kB / 464.1 MB, free: 9.945 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001781/0.09646, allocations: 215.1 kB / 464.3 MB, free: 9.734 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09647, allocations: 4 kB / 464.4 MB, free: 9.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002966/0.09677, allocations: 68 kB / 464.4 MB, free: 9.664 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.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 (28): * Single equations (assignments): 28 * 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.0007802/0.09756, allocations: 0.9736 MB / 465.4 MB, free: 8.664 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007419/0.09831, allocations: 378.5 kB / 465.8 MB, free: 8.281 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.09832, allocations: 4 kB / 465.8 MB, free: 8.277 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001741/0.0985, allocations: 107.8 kB / 465.9 MB, free: 8.172 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003926/0.0989, allocations: 58.08 kB / 465.9 MB, free: 8.117 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003917/0.1028, allocations: 3.511 MB / 469.4 MB, free: 4.504 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002714/0.1031, allocations: 0.7915 MB / 470.2 MB, free: 3.684 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001226/0.1032, allocations: 30.95 kB / 470.3 MB, free: 3.656 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001452/0.1034, allocations: 123.4 kB / 470.4 MB, free: 3.535 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1034, allocations: 0 / 470.4 MB, free: 3.535 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01838/0.1218, allocations: 6.695 MB / 477.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001988/0.122, allocations: 228.9 kB / 477.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.728/1.85, allocations: 0 / 477.3 MB, free: 12.55 MB / 366.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-07 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe 2>&1)