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.001194/0.001194, allocations: 87.28 kB / 16.31 MB, free: 5.66 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.001534/0.001533, allocations: 179.3 kB / 17.21 MB, free: 5.578 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.564/1.564, allocations: 205.4 MB / 223.4 MB, free: 5.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4532/0.4532, allocations: 48.77 MB / 320.4 MB, free: 3.801 MB / 254.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.0005306/0.0005307, allocations: 19.98 kB / 391.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1182, allocations: 60.26 MB / 451.5 MB, free: 1.797 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.1968/0.3151, allocations: 2.655 MB / 454.2 MB, free: 47.64 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001332/0.3165, allocations: 0.8072 MB / 455 MB, free: 47.55 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001747/0.3166, allocations: 9.062 kB / 455 MB, free: 47.54 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001313/0.3168, allocations: 46.47 kB / 455 MB, free: 47.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002858/0.3171, allocations: 127.8 kB / 455.2 MB, free: 47.47 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001741/0.3173, allocations: 93.5 kB / 455.3 MB, free: 47.46 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003505/0.3176, allocations: 446.5 kB / 455.7 MB, free: 47.35 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002027/0.3178, allocations: 107 kB / 455.8 MB, free: 47.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001784/0.318, allocations: 158.8 kB / 456 MB, free: 47.29 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002022/0.3182, allocations: 178.9 kB / 456.1 MB, free: 47.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.715e-05/0.3183, allocations: 18.16 kB / 456.1 MB, free: 47.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.139e-05/0.3184, allocations: 18.16 kB / 456.2 MB, free: 47.25 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.546e-05/0.3184, allocations: 65.02 kB / 456.2 MB, free: 47.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.26e-05/0.3185, allocations: 103.9 kB / 456.3 MB, free: 47.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002421/0.3187, allocations: 290.9 kB / 456.6 MB, free: 47.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3188, allocations: 0 / 456.6 MB, free: 47.14 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3188, allocations: 1.031 kB / 456.6 MB, free: 47.14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.3188, allocations: 0 / 456.6 MB, free: 47.14 MB / 382.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.0009186/0.3197, allocations: 0.6884 MB / 457.3 MB, free: 46.64 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.3198, allocations: 8.969 kB / 457.3 MB, free: 46.64 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.353e-05/0.3198, allocations: 62.62 kB / 457.4 MB, free: 46.6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001061/0.3199, allocations: 49.38 kB / 457.4 MB, free: 46.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000318/0.3203, allocations: 342.4 kB / 457.8 MB, free: 46.33 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.508e-05/0.3203, allocations: 22.16 kB / 457.8 MB, free: 46.33 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.822e-05/0.3203, allocations: 37.03 kB / 457.8 MB, free: 46.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004184/0.3208, allocations: 296.6 kB / 458.1 MB, free: 46.26 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.3208, allocations: 2.75 kB / 458.1 MB, free: 46.26 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.352e-05/0.3208, allocations: 17.08 kB / 458.1 MB, free: 46.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.3208, allocations: 5.75 kB / 458.1 MB, free: 46.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003121/0.3211, allocations: 213.6 kB / 458.3 MB, free: 46.24 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001335/0.3225, allocations: 1.119 MB / 459.5 MB, free: 45.69 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003506/0.3228, allocations: 243.2 kB / 459.7 MB, free: 45.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001669/0.323, allocations: 125 kB / 459.8 MB, free: 45.64 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.43e-05/0.3231, allocations: 2.406 kB / 459.8 MB, free: 45.64 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.816e-05/0.3231, allocations: 43.48 kB / 459.9 MB, free: 45.61 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.864e-06/0.3231, allocations: 0 / 459.9 MB, free: 45.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.001536/0.3246, allocations: 0.9364 MB / 460.8 MB, free: 45.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.457e-05/0.3247, allocations: 56.72 kB / 460.9 MB, free: 45.1 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002795/0.325, allocations: 356 kB / 461.2 MB, free: 44.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.883e-05/0.325, allocations: 36.08 kB / 461.2 MB, free: 44.95 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.837e-05/0.3251, allocations: 212.6 kB / 461.4 MB, free: 44.83 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.347e-05/0.3252, allocations: 121.8 kB / 461.6 MB, free: 44.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.352e-05/0.3252, allocations: 3.25 kB / 461.6 MB, free: 44.75 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.741e-05/0.3253, allocations: 350.9 kB / 461.9 MB, free: 44.44 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001547/0.3254, allocations: 90.8 kB / 462 MB, free: 44.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001628/0.3256, allocations: 149 kB / 462.1 MB, free: 44.38 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001738/0.3258, allocations: 99 kB / 462.2 MB, free: 44.38 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.3258, allocations: 0 / 462.2 MB, free: 44.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008095/0.3266, allocations: 422.2 kB / 462.6 MB, free: 44.29 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.3266, allocations: 11.95 kB / 462.7 MB, free: 44.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.3266, allocations: 0 / 462.7 MB, free: 44.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005028/0.3271, allocations: 121.4 kB / 462.8 MB, free: 44.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003833/0.3275, allocations: 95.77 kB / 462.9 MB, free: 44.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002274/0.3298, allocations: 3.106 MB / 466 MB, free: 41.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002041/0.33, allocations: 15.72 kB / 466 MB, free: 41.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.962e-05/0.3301, allocations: 15.28 kB / 466 MB, free: 41.35 MB / 382.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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0001257/0.3302, allocations: 152.1 kB / 466.2 MB, free: 41.21 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.288e-05/0.3303, allocations: 41.2 kB / 466.2 MB, free: 41.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003983/0.3307, allocations: 302.5 kB / 466.5 MB, free: 41.04 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.3307, allocations: 3.344 kB / 466.5 MB, free: 41.04 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-06/0.3307, allocations: 0 / 466.5 MB, free: 41.04 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.3307, allocations: 0 / 466.5 MB, free: 41.04 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007763/0.3315, allocations: 0.7625 MB / 467.3 MB, free: 40.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.3315, allocations: 0 / 467.3 MB, free: 40.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000346/0.3319, allocations: 76.44 kB / 467.3 MB, free: 40.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.3319, allocations: 3.25 kB / 467.3 MB, free: 40.55 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.94e-05/0.3319, allocations: 10.64 kB / 467.3 MB, free: 40.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.3319, allocations: 0 / 467.3 MB, free: 40.55 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.3319, allocations: 3.938 kB / 467.4 MB, free: 40.55 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005174/0.3324, allocations: 0.4884 MB / 467.8 MB, free: 40.27 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.243e-05/0.3325, allocations: 137.4 kB / 468 MB, free: 40.14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.132e-05/0.3326, allocations: 4 kB / 468 MB, free: 40.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001939/0.3328, allocations: 14.62 kB / 468 MB, free: 40.14 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.621e-05/0.3328, allocations: 24.23 kB / 468 MB, free: 40.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.357e-05/0.3328, allocations: 6.438 kB / 468 MB, free: 40.13 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000192/0.333, allocations: 251.9 kB / 468.3 MB, free: 40 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3331, allocations: 0 / 468.3 MB, free: 40 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003534/0.3334, allocations: 92 kB / 468.4 MB, free: 39.99 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006949/0.3341, allocations: 1.042 MB / 469.4 MB, free: 39.17 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007587/0.3349, allocations: 439 kB / 469.8 MB, free: 38.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3349, allocations: 0 / 469.8 MB, free: 38.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001668/0.3351, allocations: 123.2 kB / 469.9 MB, free: 38.92 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004654/0.3355, allocations: 81.44 kB / 470 MB, free: 38.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003292/0.3388, allocations: 2.701 MB / 472.7 MB, free: 37.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001851/0.339, allocations: 0.8179 MB / 473.5 MB, free: 36.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001593/0.3392, allocations: 45.2 kB / 473.6 MB, free: 36.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001684/0.3394, allocations: 143.5 kB / 473.7 MB, free: 36.59 MB / 382.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3394, allocations: 0 / 473.7 MB, free: 36.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02169/0.3611, allocations: 7.871 MB / 481.6 MB, free: 35.9 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001532/0.3613, allocations: 214.5 kB / 481.8 MB, free: 35.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.947/2.309, allocations: 5.188 kB / 481.8 MB, free: 35.66 MB / 382.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/linux/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) Environment - environmentSimulation: