Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.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.TestElectrical6,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical6,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6",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.001078/0.001078, allocations: 103.2 kB / 16.94 MB, free: 5.785 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.0009253/0.0009253, allocations: 187.3 kB / 17.87 MB, free: 5.148 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.24/1.24, allocations: 205.1 MB / 223.7 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2287/0.2287, allocations: 48.84 MB / 319.9 MB, free: 11.1 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.001492/0.001492, allocations: 67.66 kB / 390.2 MB, free: 48.81 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08218/0.08368, allocations: 59.16 MB / 449.4 MB, free: 9.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.004081/0.08781, allocations: 2.957 MB / 452.3 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001353/0.08918, allocations: 0.8112 MB / 453.2 MB, free: 5.852 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002408/0.08945, allocations: 7.938 kB / 453.2 MB, free: 5.844 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002012/0.08968, allocations: 63.31 kB / 453.2 MB, free: 5.781 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003754/0.09007, allocations: 142.8 kB / 453.4 MB, free: 5.641 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002522/0.09033, allocations: 103.8 kB / 453.5 MB, free: 5.539 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004494/0.09079, allocations: 494.3 kB / 454 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002208/0.09102, allocations: 136.3 kB / 454.1 MB, free: 4.922 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001938/0.09122, allocations: 195.1 kB / 454.3 MB, free: 4.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002293/0.09146, allocations: 199 kB / 454.5 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.024e-05/0.09151, allocations: 35.94 kB / 454.5 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.738e-05/0.09161, allocations: 40 kB / 454.5 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.003e-05/0.09169, allocations: 91.61 kB / 454.6 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000186/0.09188, allocations: 214.7 kB / 454.8 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003676/0.09225, allocations: 410.3 kB / 455.2 MB, free: 3.758 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.09226, allocations: 0 / 455.2 MB, free: 3.758 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.09227, allocations: 0 / 455.2 MB, free: 3.758 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.09228, allocations: 0 / 455.2 MB, free: 3.758 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001218/0.09351, allocations: 0.7555 MB / 456 MB, free: 2.953 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.09355, allocations: 8.031 kB / 456 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.994e-05/0.09362, allocations: 62.73 kB / 456.1 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001094/0.09373, allocations: 48.38 kB / 456.1 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003845/0.09413, allocations: 350.1 kB / 456.5 MB, free: 2.445 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.496e-05/0.09416, allocations: 32.97 kB / 456.5 MB, free: 2.414 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.042e-05/0.09423, allocations: 44.02 kB / 456.5 MB, free: 2.371 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004651/0.0947, allocations: 297.7 kB / 456.8 MB, free: 2.059 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.09473, allocations: 0 / 456.8 MB, free: 2.059 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.284e-05/0.09475, allocations: 15.94 kB / 456.8 MB, free: 2.043 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.09477, allocations: 8 kB / 456.8 MB, free: 2.035 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003538/0.09513, allocations: 202.1 kB / 457 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001655/0.09679, allocations: 1.12 MB / 458.2 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003646/0.09717, allocations: 239.9 kB / 458.4 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001818/0.09736, allocations: 116.8 kB / 458.5 MB, free: 296 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.04e-05/0.0974, allocations: 4 kB / 458.5 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.591e-05/0.09743, allocations: 42.55 kB / 458.6 MB, free: 240 kB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.362e-06/0.09744, allocations: 3.938 kB / 458.6 MB, free: 236 kB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.001934/0.09938, allocations: 0.9178 MB / 459.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.168e-05/0.09942, allocations: 59.41 kB / 459.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003044/0.09973, allocations: 365.6 kB / 459.9 MB, free: 14.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.019e-05/0.09976, allocations: 33.7 kB / 459.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/0.09988, allocations: 204.4 kB / 460.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.768e-05/0.09996, allocations: 122.2 kB / 460.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.362e-05/0.1001, allocations: 66.06 kB / 460.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.1002, allocations: 354.7 kB / 460.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001618/0.1003, allocations: 96.7 kB / 460.8 MB, free: 13.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001748/0.1005, allocations: 129.8 kB / 460.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003277/0.1009, allocations: 240 kB / 461.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.1009, allocations: 0 / 461.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008148/0.1017, allocations: 421 kB / 461.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.1017, allocations: 11.98 kB / 461.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.1017, allocations: 0 / 461.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005257/0.1023, allocations: 120.8 kB / 461.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003825/0.1026, allocations: 87.88 kB / 461.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002853/0.1055, allocations: 3.344 MB / 465.1 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002013/0.1057, allocations: 19.94 kB / 465.1 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.946e-05/0.1058, allocations: 8 kB / 465.1 MB, free: 9.238 MB / 350.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001334/0.1059, allocations: 157.7 kB / 465.3 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.829e-05/0.106, allocations: 39.44 kB / 465.3 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004571/0.1064, allocations: 310 kB / 465.6 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.1064, allocations: 0 / 465.6 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1065, allocations: 11.94 kB / 465.6 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.1065, allocations: 0 / 465.6 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008915/0.1074, allocations: 0.7444 MB / 466.4 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.1074, allocations: 0 / 466.4 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003671/0.1077, allocations: 75.89 kB / 466.4 MB, free: 7.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.1078, allocations: 0 / 466.4 MB, free: 7.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.279e-05/0.1078, allocations: 16 kB / 466.5 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.1078, allocations: 0 / 466.5 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1078, allocations: 0 / 466.5 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005947/0.1084, allocations: 498.6 kB / 466.9 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001233/0.1085, allocations: 136.6 kB / 467.1 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.974e-05/0.1086, allocations: 8 kB / 467.1 MB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001899/0.1088, allocations: 7.984 kB / 467.1 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.137e-05/0.1088, allocations: 27.97 kB / 467.1 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.1088, allocations: 4 kB / 467.1 MB, free: 7.121 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002269/0.1091, allocations: 255.2 kB / 467.4 MB, free: 6.871 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1091, allocations: 0 / 467.4 MB, free: 6.871 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003252/0.1094, allocations: 88 kB / 467.5 MB, free: 6.785 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (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) * 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 (34): * Single equations (assignments): 34 * 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.0008307/0.1103, allocations: 1.033 MB / 468.5 MB, free: 5.727 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007949/0.1111, allocations: 450.2 kB / 468.9 MB, free: 5.273 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1111, allocations: 0 / 468.9 MB, free: 5.273 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000179/0.1113, allocations: 127.8 kB / 469.1 MB, free: 5.148 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004314/0.1117, allocations: 70.72 kB / 469.1 MB, free: 5.082 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005156/0.1169, allocations: 4.065 MB / 473.2 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003328/0.1172, allocations: 0.8237 MB / 474 MB, free: 60 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001425/0.1174, allocations: 46.94 kB / 474.1 MB, free: 16 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002026/0.1176, allocations: 143.4 kB / 474.2 MB, free: 15.87 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1176, allocations: 0 / 474.2 MB, free: 15.87 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02804/0.1456, allocations: 8.59 MB / 482.8 MB, free: 7.203 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.037/8.182, allocations: 3.984 kB / 482.8 MB, free: 7.199 MB / 366.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6_fmu --startTime=0 --stopTime=40 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe 2>&1)