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.001074/0.001074, allocations: 101.2 kB / 16.5 MB, free: 6.645 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.001078/0.001078, allocations: 195.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.119/1.119, allocations: 205.1 MB / 223.3 MB, free: 12.39 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.227/0.227, allocations: 48.84 MB / 319.4 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.001325/0.001325, allocations: 67.67 kB / 389.5 MB, free: 49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07179/0.07313, allocations: 59.16 MB / 448.6 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical5): time 0.003382/0.07655, allocations: 2.741 MB / 451.4 MB, free: 7.414 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001205/0.07778, allocations: 0.7527 MB / 452.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002095/0.078, allocations: 7.938 kB / 452.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001474/0.07816, allocations: 27.7 kB / 452.1 MB, free: 6.617 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003089/0.07849, allocations: 103.2 kB / 452.2 MB, free: 6.516 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001758/0.07868, allocations: 75.88 kB / 452.3 MB, free: 6.441 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003698/0.07906, allocations: 386.2 kB / 452.7 MB, free: 6.062 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001546/0.07922, allocations: 73.02 kB / 452.8 MB, free: 5.992 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001934/0.07942, allocations: 143.3 kB / 452.9 MB, free: 5.852 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001898/0.07962, allocations: 159.1 kB / 453.1 MB, free: 5.695 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.891e-05/0.07966, allocations: 16 kB / 453.1 MB, free: 5.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.482e-05/0.07974, allocations: 24 kB / 453.1 MB, free: 5.656 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.117e-05/0.0798, allocations: 55.7 kB / 453.2 MB, free: 5.602 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001283/0.07993, allocations: 163 kB / 453.3 MB, free: 5.441 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002598/0.0802, allocations: 307 kB / 453.6 MB, free: 5.141 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.08021, allocations: 0 / 453.6 MB, free: 5.141 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.11e-07/0.08022, allocations: 4 kB / 453.6 MB, free: 5.137 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.08023, allocations: 0 / 453.6 MB, free: 5.137 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.0009436/0.08117, allocations: 0.6659 MB / 454.3 MB, free: 4.422 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.08122, allocations: 8.031 kB / 454.3 MB, free: 4.414 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.476e-05/0.08128, allocations: 62.72 kB / 454.4 MB, free: 4.344 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.08138, allocations: 40.47 kB / 454.4 MB, free: 4.305 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003207/0.08171, allocations: 316 kB / 454.7 MB, free: 3.953 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.607e-05/0.08173, allocations: 20.75 kB / 454.7 MB, free: 3.934 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.822e-05/0.08178, allocations: 24.38 kB / 454.7 MB, free: 3.91 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003756/0.08216, allocations: 242.8 kB / 455 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.08218, allocations: 7.984 kB / 455 MB, free: 3.652 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.883e-05/0.0822, allocations: 8 kB / 455 MB, free: 3.645 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.08222, allocations: 8 kB / 455 MB, free: 3.637 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003407/0.08256, allocations: 173.6 kB / 455.2 MB, free: 3.465 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.08359, allocations: 0.8634 MB / 456 MB, free: 2.535 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002844/0.08389, allocations: 187.9 kB / 456.2 MB, free: 2.344 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00017/0.08407, allocations: 104.8 kB / 456.3 MB, free: 2.238 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.403e-05/0.0841, allocations: 7.984 kB / 456.3 MB, free: 2.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.066e-05/0.08413, allocations: 38.56 kB / 456.4 MB, free: 2.184 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.352e-06/0.08413, allocations: 4 kB / 456.4 MB, free: 2.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.001221/0.08536, allocations: 0.7345 MB / 457.1 MB, free: 1.398 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.929e-05/0.0854, allocations: 59.41 kB / 457.2 MB, free: 1.328 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002591/0.08566, allocations: 304.5 kB / 457.5 MB, free: 1.027 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.215e-05/0.08569, allocations: 29.7 kB / 457.5 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.476e-05/0.08579, allocations: 176.6 kB / 457.7 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.4e-05/0.08586, allocations: 102.5 kB / 457.8 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.724e-05/0.08594, allocations: 57.64 kB / 457.8 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.675e-05/0.08604, allocations: 342.8 kB / 458.2 MB, free: 316 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001574/0.0862, allocations: 71.97 kB / 458.2 MB, free: 244 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001637/0.08637, allocations: 114.5 kB / 458.3 MB, free: 120 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003269/0.08671, allocations: 192.2 kB / 458.5 MB, free: 15.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.08672, allocations: 4 kB / 458.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00057/0.08729, allocations: 318.9 kB / 458.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.08731, allocations: 4 kB / 458.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.08732, allocations: 0 / 458.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002398/0.08757, allocations: 64.88 kB / 458.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003296/0.08791, allocations: 75.88 kB / 459 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001949/0.08987, allocations: 2.827 MB / 461.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001704/0.09005, allocations: 16.02 kB / 461.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.561e-05/0.09008, allocations: 8 kB / 461.8 MB, free: 12.33 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.0001247/0.09021, allocations: 155.7 kB / 462 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.166e-05/0.09026, allocations: 31.56 kB / 462 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004099/0.09068, allocations: 269.2 kB / 462.3 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.09069, allocations: 4 kB / 462.3 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-06/0.0907, allocations: 0 / 462.3 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.09071, allocations: 0 / 462.3 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007927/0.0915, allocations: 0.6622 MB / 462.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.09152, allocations: 3.938 kB / 463 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002906/0.09181, allocations: 59.97 kB / 463 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.09182, allocations: 0 / 463 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.888e-05/0.09185, allocations: 12.17 kB / 463 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.09186, allocations: 4 kB / 463 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.09186, allocations: 0 / 463 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005722/0.09244, allocations: 459.4 kB / 463.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.238e-05/0.09254, allocations: 120.8 kB / 463.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.016e-05/0.09259, allocations: 4 kB / 463.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000184/0.09278, allocations: 15.98 kB / 463.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.863e-05/0.09283, allocations: 19.97 kB / 463.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.267e-05/0.09285, allocations: 8 kB / 463.6 MB, free: 10.42 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001816/0.09304, allocations: 219 kB / 463.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09305, allocations: 0 / 463.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002974/0.09335, allocations: 72 kB / 463.9 MB, free: 10.14 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.00078/0.09413, allocations: 0.9775 MB / 464.9 MB, free: 9.133 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007549/0.0949, allocations: 374.5 kB / 465.3 MB, free: 8.754 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.09491, allocations: 0 / 465.3 MB, free: 8.754 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001774/0.09509, allocations: 103.9 kB / 465.4 MB, free: 8.652 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003998/0.0955, allocations: 53 kB / 465.4 MB, free: 8.602 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003994/0.09951, allocations: 3.513 MB / 468.9 MB, free: 4.984 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002754/0.09979, allocations: 0.7915 MB / 469.7 MB, free: 4.164 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001284/0.09993, allocations: 34.95 kB / 469.8 MB, free: 4.133 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001429/0.1001, allocations: 119.3 kB / 469.9 MB, free: 4.016 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1001, allocations: 4 kB / 469.9 MB, free: 4.012 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01621/0.1163, allocations: 6.49 MB / 476.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001923/0.1165, allocations: 220.7 kB / 476.6 MB, free: 13.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.624/1.74, allocations: 4 kB / 476.6 MB, free: 13.22 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)