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.0007954/0.0007992, allocations: 90.53 kB / 16.65 MB, free: 6.59 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.0008632/0.0008632, allocations: 181.3 kB / 17.56 MB, free: 6.203 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.142/1.142, allocations: 205.4 MB / 223.7 MB, free: 13 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2304/0.2304, allocations: 48.78 MB / 320.8 MB, free: 11.09 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.0004331/0.0004331, allocations: 13.05 kB / 391.9 MB, free: 50 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07217/0.07262, allocations: 60.26 MB / 452.2 MB, free: 9.074 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.00273/0.07538, allocations: 2.792 MB / 455 MB, free: 6.254 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001142/0.07654, allocations: 0.819 MB / 455.8 MB, free: 5.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001361/0.0767, allocations: 15.94 kB / 455.8 MB, free: 5.414 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001134/0.07682, allocations: 39.58 kB / 455.8 MB, free: 5.375 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002763/0.0771, allocations: 111.1 kB / 455.9 MB, free: 5.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001902/0.0773, allocations: 103.8 kB / 456 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004008/0.07771, allocations: 470.4 kB / 456.5 MB, free: 4.703 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002047/0.07792, allocations: 120 kB / 456.6 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001915/0.07812, allocations: 171.1 kB / 456.8 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002027/0.07833, allocations: 183 kB / 457 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.624e-05/0.07837, allocations: 16 kB / 457 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.624e-05/0.07845, allocations: 24 kB / 457 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.568e-05/0.07851, allocations: 63.62 kB / 457.1 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000155/0.07867, allocations: 224.4 kB / 457.3 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003167/0.07899, allocations: 378.3 kB / 457.7 MB, free: 3.535 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.07901, allocations: 0 / 457.7 MB, free: 3.535 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.07901, allocations: 0 / 457.7 MB, free: 3.535 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.07902, allocations: 3.938 kB / 457.7 MB, free: 3.531 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.0009856/0.08001, allocations: 0.6778 MB / 458.3 MB, free: 2.805 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.08005, allocations: 8.031 kB / 458.3 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.787e-05/0.08013, allocations: 70.66 kB / 458.4 MB, free: 2.719 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000104/0.08024, allocations: 60.28 kB / 458.5 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003472/0.08059, allocations: 350.1 kB / 458.8 MB, free: 2.281 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.651e-05/0.08063, allocations: 25.03 kB / 458.8 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.357e-05/0.08069, allocations: 36.12 kB / 458.9 MB, free: 2.223 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004312/0.08113, allocations: 297.7 kB / 459.2 MB, free: 1.914 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.08115, allocations: 7.906 kB / 459.2 MB, free: 1.906 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.504e-05/0.08118, allocations: 12 kB / 459.2 MB, free: 1.895 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.08119, allocations: 8 kB / 459.2 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003526/0.08155, allocations: 206.1 kB / 459.4 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001451/0.08301, allocations: 1.132 MB / 460.5 MB, free: 496 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003441/0.08337, allocations: 239 kB / 460.8 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001841/0.08356, allocations: 124.8 kB / 460.9 MB, free: 120 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.16e-05/0.08359, allocations: 8 kB / 460.9 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.028e-05/0.08362, allocations: 34.56 kB / 460.9 MB, free: 68 kB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.283e-06/0.08363, allocations: 0 / 460.9 MB, free: 68 kB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.001571/0.0852, allocations: 0.9451 MB / 461.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.857e-05/0.08524, allocations: 55.41 kB / 461.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003191/0.08557, allocations: 365.6 kB / 462.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.816e-05/0.0856, allocations: 29.7 kB / 462.3 MB, free: 14.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.08573, allocations: 212.4 kB / 462.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.814e-05/0.08582, allocations: 114.3 kB / 462.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.545e-05/0.08587, allocations: 41.69 kB / 462.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.08599, allocations: 350.7 kB / 463 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001545/0.08615, allocations: 84.72 kB / 463.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001837/0.08634, allocations: 137.7 kB / 463.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003469/0.08669, allocations: 239.8 kB / 463.5 MB, free: 13.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.08671, allocations: 8 kB / 463.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008508/0.08756, allocations: 421.3 kB / 463.9 MB, free: 12.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.08759, allocations: 8 kB / 463.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.0876, allocations: 0 / 463.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005259/0.08813, allocations: 128.7 kB / 464 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003873/0.08853, allocations: 91.88 kB / 464.1 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002686/0.09122, allocations: 3.123 MB / 467.2 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001975/0.09143, allocations: 12.06 kB / 467.2 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.015e-05/0.09146, allocations: 16 kB / 467.3 MB, free: 9.297 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.0001437/0.09161, allocations: 149.7 kB / 467.4 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.815e-05/0.09167, allocations: 39.47 kB / 467.4 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004614/0.09214, allocations: 309.9 kB / 467.7 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.09216, allocations: 8 kB / 467.8 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-06/0.09216, allocations: 0 / 467.8 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.09217, allocations: 4 kB / 467.8 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008998/0.09308, allocations: 0.748 MB / 468.5 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.09309, allocations: 4 kB / 468.5 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003617/0.09346, allocations: 79.89 kB / 468.6 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.09347, allocations: 4 kB / 468.6 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.864e-05/0.09349, allocations: 8 kB / 468.6 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.0935, allocations: 0 / 468.6 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.09351, allocations: 7.938 kB / 468.6 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006017/0.09411, allocations: 0.4918 MB / 469.1 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001169/0.09424, allocations: 140.5 kB / 469.2 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.981e-05/0.09429, allocations: 8 kB / 469.2 MB, free: 7.199 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001991/0.09449, allocations: 11.94 kB / 469.3 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.352e-05/0.09454, allocations: 19.97 kB / 469.3 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.548e-05/0.09457, allocations: 16.27 kB / 469.3 MB, free: 7.152 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002298/0.0948, allocations: 251.2 kB / 469.5 MB, free: 6.914 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09481, allocations: 0 / 469.5 MB, free: 6.914 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003318/0.09515, allocations: 95.94 kB / 469.6 MB, free: 6.82 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.0008174/0.09597, allocations: 1.028 MB / 470.7 MB, free: 5.766 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007776/0.09676, allocations: 458.3 kB / 471.1 MB, free: 5.305 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.09677, allocations: 0 / 471.1 MB, free: 5.305 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001884/0.09696, allocations: 120.6 kB / 471.2 MB, free: 5.188 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004659/0.09744, allocations: 87.31 kB / 471.3 MB, free: 5.102 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005054/0.1025, allocations: 4.299 MB / 475.6 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003295/0.1028, allocations: 0.8237 MB / 476.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001372/0.103, allocations: 38.95 kB / 476.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001865/0.1032, allocations: 139.4 kB / 476.6 MB, free: 15.67 MB / 366.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1032, allocations: 4 kB / 476.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01797/0.1212, allocations: 8.046 MB / 484.7 MB, free: 7.605 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002069/0.1214, allocations: 236.7 kB / 484.9 MB, free: 7.344 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.712/1.833, allocations: 3.938 kB / 484.9 MB, free: 7.34 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)