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.001161/0.001161, allocations: 107.9 kB / 16.94 MB, free: 5.793 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.0009399/0.00094, allocations: 187.3 kB / 17.87 MB, free: 5.145 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.223/1.223, allocations: 205.1 MB / 223.8 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.24/0.24, 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.001316/0.001316, allocations: 68.88 kB / 390.2 MB, free: 48.82 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07793/0.07926, allocations: 59.15 MB / 449.4 MB, free: 9.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical5): time 0.003396/0.08269, allocations: 2.645 MB / 452 MB, free: 6.977 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001083/0.08379, allocations: 0.7448 MB / 452.8 MB, free: 6.223 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001304/0.08393, allocations: 8 kB / 452.8 MB, free: 6.215 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001429/0.08408, allocations: 47.45 kB / 452.8 MB, free: 6.168 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002538/0.08436, allocations: 123 kB / 453 MB, free: 6.047 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001802/0.08454, allocations: 79.83 kB / 453 MB, free: 5.969 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003551/0.08491, allocations: 406.1 kB / 453.4 MB, free: 5.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001593/0.08507, allocations: 81.45 kB / 453.5 MB, free: 5.492 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001722/0.08525, allocations: 159.3 kB / 453.7 MB, free: 5.336 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001899/0.08545, allocations: 159.2 kB / 453.8 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.081e-05/0.0855, allocations: 28 kB / 453.8 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.22e-05/0.08558, allocations: 24 kB / 453.9 MB, free: 5.129 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.192e-05/0.08563, allocations: 75.62 kB / 453.9 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001314/0.08577, allocations: 171 kB / 454.1 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003041/0.08608, allocations: 323 kB / 454.4 MB, free: 4.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.08609, allocations: 0 / 454.4 MB, free: 4.57 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.0861, allocations: 0 / 454.4 MB, free: 4.57 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.08611, allocations: 0 / 454.4 MB, free: 4.57 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.0009019/0.08702, allocations: 0.6658 MB / 455.1 MB, free: 3.855 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.08706, allocations: 15.89 kB / 455.1 MB, free: 3.84 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.313e-05/0.08712, allocations: 62.66 kB / 455.2 MB, free: 3.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.38e-05/0.08722, allocations: 44.47 kB / 455.2 MB, free: 3.727 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003077/0.08753, allocations: 312 kB / 455.5 MB, free: 3.383 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.819e-05/0.08756, allocations: 24.8 kB / 455.5 MB, free: 3.359 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.021e-05/0.0876, allocations: 24.38 kB / 455.6 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003612/0.08797, allocations: 242.8 kB / 455.8 MB, free: 3.086 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.08799, allocations: 3.938 kB / 455.8 MB, free: 3.082 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.754e-05/0.08802, allocations: 12 kB / 455.8 MB, free: 3.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.022e-06/0.08803, allocations: 8 kB / 455.8 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003342/0.08837, allocations: 173.6 kB / 456 MB, free: 2.891 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009817/0.08936, allocations: 0.8555 MB / 456.9 MB, free: 1.969 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002831/0.08965, allocations: 187.6 kB / 457 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001746/0.08984, allocations: 108.8 kB / 457.1 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.506e-05/0.08987, allocations: 7.984 kB / 457.2 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.186e-05/0.0899, allocations: 38.56 kB / 457.2 MB, free: 1.613 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 2.545e-06/0.0899, allocations: 0 / 457.2 MB, free: 1.613 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.001211/0.09112, allocations: 0.7382 MB / 457.9 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.069e-05/0.09116, allocations: 55.41 kB / 458 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000256/0.09142, allocations: 300.5 kB / 458.3 MB, free: 472 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/0.09145, allocations: 33.7 kB / 458.3 MB, free: 432 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.09156, allocations: 184.6 kB / 458.5 MB, free: 244 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.288e-05/0.09163, allocations: 94.56 kB / 458.6 MB, free: 148 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.729e-05/0.0917, allocations: 57.64 kB / 458.6 MB, free: 84 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.09182, allocations: 342.8 kB / 459 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001548/0.09198, allocations: 75.95 kB / 459 MB, free: 15.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001651/0.09215, allocations: 114.7 kB / 459.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003136/0.09247, allocations: 196.1 kB / 459.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.09248, allocations: 0 / 459.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005563/0.09304, allocations: 314.9 kB / 459.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.09307, allocations: 7.984 kB / 459.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.09308, allocations: 4 kB / 459.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000238/0.09332, allocations: 56.89 kB / 459.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003325/0.09367, allocations: 75.88 kB / 459.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002074/0.09575, allocations: 3.028 MB / 462.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001765/0.09594, allocations: 27.92 kB / 462.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.522e-05/0.09597, allocations: 8 kB / 462.9 MB, free: 11.54 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.0001239/0.0961, allocations: 142.9 kB / 463 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.128e-05/0.09615, allocations: 31.62 kB / 463 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004204/0.09658, allocations: 257.5 kB / 463.3 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.09659, allocations: 8 kB / 463.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.0966, allocations: 3.984 kB / 463.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.09661, allocations: 3.938 kB / 463.3 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007986/0.09741, allocations: 0.6584 MB / 464 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.09743, allocations: 0 / 464 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002946/0.09773, allocations: 67.91 kB / 464 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.083e-06/0.09774, allocations: 0 / 464 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.806e-05/0.09776, allocations: 15.94 kB / 464 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.09777, allocations: 3.984 kB / 464 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.09778, allocations: 3.938 kB / 464 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005674/0.09835, allocations: 442.9 kB / 464.5 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.179e-05/0.09845, allocations: 120.8 kB / 464.6 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.666e-05/0.0985, allocations: 11.94 kB / 464.6 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000174/0.09868, allocations: 19.92 kB / 464.6 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.569e-05/0.09873, allocations: 15.97 kB / 464.6 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.202e-05/0.09875, allocations: 8 kB / 464.7 MB, free: 9.637 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001865/0.09894, allocations: 215.1 kB / 464.9 MB, free: 9.426 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09894, allocations: 3.938 kB / 464.9 MB, free: 9.422 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003068/0.09926, allocations: 72 kB / 464.9 MB, free: 9.352 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.0007806/0.1, allocations: 0.9743 MB / 465.9 MB, free: 8.352 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007503/0.1008, allocations: 366.6 kB / 466.3 MB, free: 7.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1008, allocations: 0 / 466.3 MB, free: 7.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001741/0.101, allocations: 107.8 kB / 466.4 MB, free: 7.875 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003798/0.1014, allocations: 66.5 kB / 466.4 MB, free: 7.812 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003915/0.1053, allocations: 3.407 MB / 469.8 MB, free: 4.305 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002861/0.1056, allocations: 0.7953 MB / 470.6 MB, free: 3.484 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001171/0.1057, allocations: 38.95 kB / 470.7 MB, free: 3.449 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001495/0.1059, allocations: 115.4 kB / 470.8 MB, free: 3.336 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1059, allocations: 0 / 470.8 MB, free: 3.336 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02507/0.131, allocations: 6.847 MB / 477.6 MB, free: 12.42 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.697/6.828, allocations: 4.062 kB / 477.6 MB, free: 12.42 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)