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.001115/0.001115, allocations: 109.4 kB / 16.51 MB, free: 6.707 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.001099/0.001099, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.11/1.11, allocations: 205.1 MB / 223.3 MB, free: 12.49 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.223/0.223, allocations: 48.84 MB / 319.5 MB, free: 11.31 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.001297/0.001297, allocations: 66.27 kB / 389.5 MB, free: 49.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06908/0.07039, allocations: 59.17 MB / 448.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.003589/0.07401, allocations: 3.158 MB / 451.8 MB, free: 6.965 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001297/0.07532, allocations: 0.8345 MB / 452.6 MB, free: 6.125 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002028/0.07554, allocations: 7.938 kB / 452.6 MB, free: 6.117 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001575/0.07572, allocations: 39.62 kB / 452.7 MB, free: 6.078 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003063/0.07603, allocations: 119.2 kB / 452.8 MB, free: 5.961 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002065/0.07625, allocations: 95.84 kB / 452.9 MB, free: 5.867 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004048/0.07666, allocations: 470.4 kB / 453.3 MB, free: 5.406 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001966/0.07687, allocations: 120 kB / 453.4 MB, free: 5.285 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002173/0.07709, allocations: 183.1 kB / 453.6 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00023/0.07733, allocations: 206.9 kB / 453.8 MB, free: 4.902 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.671e-05/0.07738, allocations: 23.94 kB / 453.9 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.311e-05/0.07747, allocations: 24 kB / 453.9 MB, free: 4.855 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.299e-05/0.07754, allocations: 75.67 kB / 453.9 MB, free: 4.781 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001536/0.0777, allocations: 202.7 kB / 454.1 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003097/0.07802, allocations: 382.5 kB / 454.5 MB, free: 4.207 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.07803, allocations: 3.938 kB / 454.5 MB, free: 4.203 MB / 334.1 MB Notification: Performance of FrontEnd: time 6.11e-07/0.07803, allocations: 0 / 454.5 MB, free: 4.203 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.07805, allocations: 0 / 454.5 MB, free: 4.203 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.001114/0.07917, allocations: 0.7617 MB / 455.3 MB, free: 3.395 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.07921, allocations: 8.031 kB / 455.3 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.317e-05/0.07928, allocations: 70.72 kB / 455.4 MB, free: 3.309 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001118/0.07939, allocations: 52.38 kB / 455.4 MB, free: 3.258 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003457/0.07974, allocations: 350.1 kB / 455.8 MB, free: 2.879 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.07977, allocations: 21.03 kB / 455.8 MB, free: 2.859 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.016e-05/0.07983, allocations: 40.03 kB / 455.8 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004317/0.08026, allocations: 297.7 kB / 456.1 MB, free: 2.512 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.08029, allocations: 7.984 kB / 456.1 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.387e-05/0.08032, allocations: 12 kB / 456.1 MB, free: 2.492 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.645e-06/0.08033, allocations: 8 kB / 456.1 MB, free: 2.484 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003423/0.08068, allocations: 202.1 kB / 456.3 MB, free: 2.289 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001439/0.08213, allocations: 1.112 MB / 457.4 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003389/0.08248, allocations: 244 kB / 457.7 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001715/0.08266, allocations: 124.8 kB / 457.8 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.408e-05/0.08269, allocations: 8 kB / 457.8 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.029e-05/0.08272, allocations: 34.56 kB / 457.8 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.303e-06/0.08272, allocations: 0 / 457.8 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.001537/0.08426, allocations: 0.9373 MB / 458.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.606e-05/0.0843, allocations: 55.34 kB / 458.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003126/0.08462, allocations: 361.6 kB / 459.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.062e-05/0.08465, allocations: 29.7 kB / 459.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.08477, allocations: 208.4 kB / 459.4 MB, free: 15 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.478e-05/0.08485, allocations: 126.2 kB / 459.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.499e-05/0.08494, allocations: 62.08 kB / 459.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.971e-05/0.08504, allocations: 354.7 kB / 460 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000158/0.08521, allocations: 88.7 kB / 460 MB, free: 14.37 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000178/0.08539, allocations: 133.7 kB / 460.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003307/0.08573, allocations: 236 kB / 460.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.08574, allocations: 0 / 460.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.000841/0.08659, allocations: 425.2 kB / 460.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.08661, allocations: 8 kB / 460.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.08662, allocations: 0 / 460.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000555/0.08718, allocations: 128.7 kB / 460.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003825/0.08757, allocations: 87.88 kB / 461 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00264/0.09022, allocations: 3.112 MB / 464.1 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002005/0.09043, allocations: 11.98 kB / 464.2 MB, free: 9.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.026e-05/0.09046, allocations: 12 kB / 464.2 MB, free: 9.926 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.0001321/0.0906, allocations: 149.7 kB / 464.3 MB, free: 9.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.079e-05/0.09067, allocations: 43.47 kB / 464.4 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004322/0.09111, allocations: 305.9 kB / 464.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.09112, allocations: 8 kB / 464.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-06/0.09113, allocations: 0 / 464.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.09114, allocations: 3.984 kB / 464.7 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008439/0.09198, allocations: 0.748 MB / 465.4 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.092, allocations: 0 / 465.4 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00037/0.09237, allocations: 87.83 kB / 465.5 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.09238, allocations: 0 / 465.5 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.983e-05/0.09241, allocations: 12 kB / 465.5 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.09242, allocations: 288 / 465.5 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.09242, allocations: 3.938 kB / 465.5 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005795/0.09301, allocations: 0.4918 MB / 466 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001065/0.09313, allocations: 136.5 kB / 466.1 MB, free: 7.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.14e-05/0.09317, allocations: 7.938 kB / 466.2 MB, free: 7.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002178/0.0934, allocations: 11.94 kB / 466.2 MB, free: 7.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.508e-05/0.09345, allocations: 23.97 kB / 466.2 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.429e-05/0.09347, allocations: 12 kB / 466.2 MB, free: 7.785 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002118/0.09369, allocations: 255.2 kB / 466.4 MB, free: 7.543 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09369, allocations: 0 / 466.4 MB, free: 7.543 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003204/0.09402, allocations: 92 kB / 466.5 MB, free: 7.453 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.0007797/0.0948, allocations: 1.024 MB / 467.6 MB, free: 6.402 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007604/0.09557, allocations: 442.2 kB / 468 MB, free: 5.957 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.09559, allocations: 4 kB / 468 MB, free: 5.953 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000176/0.09577, allocations: 116.5 kB / 468.1 MB, free: 5.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000439/0.09622, allocations: 77.52 kB / 468.2 MB, free: 5.762 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004896/0.1011, allocations: 4.183 MB / 472.4 MB, free: 1.465 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002919/0.1014, allocations: 0.8198 MB / 473.2 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000145/0.1016, allocations: 46.94 kB / 473.2 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001758/0.1018, allocations: 139.4 kB / 473.4 MB, free: 448 kB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1018, allocations: 0 / 473.4 MB, free: 448 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01828/0.1201, allocations: 8.178 MB / 481.5 MB, free: 8.211 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002032/0.1203, allocations: 237.9 kB / 481.8 MB, free: 7.949 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.665/1.786, allocations: 7.938 kB / 481.8 MB, free: 7.941 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)