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.0009509/0.0009509, allocations: 102.5 kB / 16.62 MB, free: 6.805 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.0009133/0.0009133, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.153/1.153, 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.2291/0.2291, allocations: 48.84 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.00131/0.00131, allocations: 62.28 kB / 389.6 MB, free: 48.94 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07816/0.07948, allocations: 59.17 MB / 448.8 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.003697/0.08321, allocations: 3.162 MB / 452 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001101/0.08433, allocations: 0.8306 MB / 452.8 MB, free: 6.004 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001489/0.08449, allocations: 7.938 kB / 452.8 MB, free: 5.996 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001403/0.08464, allocations: 43.56 kB / 452.9 MB, free: 5.953 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002698/0.08492, allocations: 115.2 kB / 453 MB, free: 5.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000197/0.08513, allocations: 99.84 kB / 453.1 MB, free: 5.742 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003847/0.08552, allocations: 494.4 kB / 453.5 MB, free: 5.258 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001958/0.08572, allocations: 132.3 kB / 453.7 MB, free: 5.129 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001838/0.08591, allocations: 191.1 kB / 453.9 MB, free: 4.941 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002019/0.08613, allocations: 210.9 kB / 454.1 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.59e-05/0.08618, allocations: 32 kB / 454.1 MB, free: 4.703 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.736e-05/0.08626, allocations: 36 kB / 454.1 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.311e-05/0.08633, allocations: 95.55 kB / 454.2 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000146/0.08648, allocations: 214.8 kB / 454.4 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003124/0.0868, allocations: 394.5 kB / 454.8 MB, free: 3.977 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.08681, allocations: 0 / 454.8 MB, free: 3.977 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.08682, allocations: 4 kB / 454.8 MB, free: 3.973 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.08683, allocations: 0 / 454.8 MB, free: 3.973 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.001063/0.0879, allocations: 0.7516 MB / 455.6 MB, free: 3.172 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.08794, allocations: 12.03 kB / 455.6 MB, free: 3.16 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.692e-05/0.088, allocations: 70.72 kB / 455.7 MB, free: 3.082 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001114/0.08812, allocations: 48.38 kB / 455.7 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003402/0.08846, allocations: 354.1 kB / 456.1 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.919e-05/0.08849, allocations: 21.03 kB / 456.1 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.384e-05/0.08855, allocations: 40.03 kB / 456.1 MB, free: 2.59 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004285/0.08898, allocations: 305.7 kB / 456.4 MB, free: 2.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.08901, allocations: 4 kB / 456.4 MB, free: 2.266 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.264e-05/0.08903, allocations: 8 kB / 456.4 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.08905, allocations: 8 kB / 456.4 MB, free: 2.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003328/0.08938, allocations: 206.1 kB / 456.6 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001379/0.09077, allocations: 1.116 MB / 457.8 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003345/0.09112, allocations: 243.8 kB / 458 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001744/0.0913, allocations: 128.7 kB / 458.1 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.68e-05/0.09134, allocations: 4 kB / 458.1 MB, free: 496 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.809e-05/0.09136, allocations: 34.56 kB / 458.2 MB, free: 452 kB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.302e-06/0.09137, allocations: 0 / 458.2 MB, free: 452 kB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.001526/0.0929, allocations: 0.9296 MB / 459.1 MB, free: 15.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.85e-05/0.09294, allocations: 51.41 kB / 459.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003127/0.09325, allocations: 361.6 kB / 459.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.183e-05/0.09328, allocations: 29.7 kB / 459.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000115/0.09341, allocations: 212.3 kB / 459.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.655e-05/0.09349, allocations: 126.2 kB / 459.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.46e-05/0.09358, allocations: 70.08 kB / 459.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.09369, allocations: 354.7 kB / 460.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001477/0.09385, allocations: 92.55 kB / 460.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000169/0.09402, allocations: 137.7 kB / 460.5 MB, free: 13.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003182/0.09435, allocations: 236 kB / 460.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.09436, allocations: 0 / 460.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008335/0.0952, allocations: 421.2 kB / 461.1 MB, free: 13.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.09522, allocations: 8 kB / 461.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.09523, allocations: 0 / 461.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005392/0.09577, allocations: 120.9 kB / 461.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004086/0.09619, allocations: 91.88 kB / 461.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002833/0.09904, allocations: 3.336 MB / 464.7 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002054/0.09926, allocations: 19.92 kB / 464.7 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.993e-05/0.09928, allocations: 12 kB / 464.7 MB, free: 9.438 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.0001391/0.09943, allocations: 157.7 kB / 464.9 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.949e-05/0.0995, allocations: 47.5 kB / 464.9 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004282/0.09993, allocations: 301.9 kB / 465.2 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.758e-06/0.09995, allocations: 4 kB / 465.2 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.474e-06/0.09995, allocations: 3.938 kB / 465.2 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.09996, allocations: 3.984 kB / 465.2 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000866/0.1008, allocations: 0.7483 MB / 466 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1008, allocations: 0 / 466 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003714/0.1012, allocations: 75.95 kB / 466 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.1012, allocations: 4 kB / 466 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.961e-05/0.1013, allocations: 4 kB / 466 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.793e-06/0.1013, allocations: 4 kB / 466.1 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1013, allocations: 7.875 kB / 466.1 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005671/0.1018, allocations: 499 kB / 466.5 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.102, allocations: 132.6 kB / 466.7 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.285e-05/0.102, allocations: 12 kB / 466.7 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002043/0.1022, allocations: 8 kB / 466.7 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.689e-05/0.1023, allocations: 15.97 kB / 466.7 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.476e-05/0.1023, allocations: 8 kB / 466.7 MB, free: 7.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002156/0.1025, allocations: 255.2 kB / 467 MB, free: 7.074 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1025, allocations: 0 / 467 MB, free: 7.074 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003265/0.1029, allocations: 92 kB / 467.1 MB, free: 6.984 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.0007898/0.1037, allocations: 1.044 MB / 468.1 MB, free: 5.914 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008463/0.1045, allocations: 454.2 kB / 468.5 MB, free: 5.457 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1045, allocations: 0 / 468.5 MB, free: 5.457 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001822/0.1047, allocations: 123.8 kB / 468.7 MB, free: 5.336 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004567/0.1052, allocations: 79.66 kB / 468.7 MB, free: 5.262 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004948/0.1101, allocations: 4.175 MB / 472.9 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003017/0.1105, allocations: 0.8198 MB / 473.7 MB, free: 132 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001477/0.1106, allocations: 38.95 kB / 473.8 MB, free: 96 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001929/0.1108, allocations: 147.4 kB / 473.9 MB, free: 15.95 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1108, allocations: 0 / 473.9 MB, free: 15.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02208/0.1329, allocations: 8.465 MB / 482.4 MB, free: 7.453 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002591/0.1332, allocations: 241.5 kB / 482.6 MB, free: 7.188 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.737/1.871, allocations: 4 kB / 482.6 MB, free: 7.184 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)