Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.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.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",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.0008102/0.0008102, allocations: 87.38 kB / 16.31 MB, free: 5.676 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.0008611/0.0008612, allocations: 182.2 kB / 17.21 MB, free: 5.598 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.397/1.397, allocations: 205.4 MB / 223.4 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3015/0.3015, allocations: 48.78 MB / 320.4 MB, free: 11.22 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.0004957/0.0004957, allocations: 14.48 kB / 391.3 MB, free: 50.19 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.109, allocations: 60.27 MB / 451.5 MB, free: 9.441 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical1): time 0.002167/0.1112, allocations: 1.761 MB / 453.3 MB, free: 7.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001003/0.1122, allocations: 0.5817 MB / 453.9 MB, free: 7.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001046/0.1124, allocations: 7.875 kB / 453.9 MB, free: 7.062 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001123/0.1125, allocations: 19.84 kB / 453.9 MB, free: 7.043 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002047/0.1127, allocations: 55.55 kB / 454 MB, free: 6.988 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001165/0.1128, allocations: 31.95 kB / 454 MB, free: 6.957 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002261/0.113, allocations: 195 kB / 454.2 MB, free: 6.766 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001133/0.1132, allocations: 32.28 kB / 454.2 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001232/0.1133, allocations: 75.64 kB / 454.3 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001219/0.1134, allocations: 71.62 kB / 454.4 MB, free: 6.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.407e-05/0.1135, allocations: 8 kB / 454.4 MB, free: 6.582 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.076e-05/0.1135, allocations: 12 kB / 454.4 MB, free: 6.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.784e-05/0.1136, allocations: 23.86 kB / 454.4 MB, free: 6.547 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.719e-05/0.1136, allocations: 61.58 kB / 454.5 MB, free: 6.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001567/0.1138, allocations: 123.9 kB / 454.6 MB, free: 6.359 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.1138, allocations: 0 / 454.6 MB, free: 6.359 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1138, allocations: 0 / 454.6 MB, free: 6.359 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.1138, allocations: 3.938 kB / 454.6 MB, free: 6.355 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0007067/0.1145, allocations: 466.5 kB / 455 MB, free: 5.852 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/0.1146, allocations: 8.031 kB / 455 MB, free: 5.844 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.541e-05/0.1146, allocations: 42.55 kB / 455.1 MB, free: 5.793 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.653e-05/0.1147, allocations: 19.81 kB / 455.1 MB, free: 5.773 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003073/0.115, allocations: 239.6 kB / 455.3 MB, free: 5.496 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.687e-05/0.1151, allocations: 12 kB / 455.3 MB, free: 5.484 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.257e-05/0.1151, allocations: 12 kB / 455.4 MB, free: 5.473 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002478/0.1154, allocations: 127.3 kB / 455.5 MB, free: 5.336 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.1154, allocations: 7.984 kB / 455.5 MB, free: 5.328 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.643e-05/0.1154, allocations: 7.953 kB / 455.5 MB, free: 5.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.945e-05/0.1155, allocations: 4 kB / 455.5 MB, free: 5.316 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002083/0.1157, allocations: 80.48 kB / 455.6 MB, free: 5.238 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007925/0.1165, allocations: 0.5568 MB / 456.1 MB, free: 4.621 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002844/0.1168, allocations: 110.5 kB / 456.2 MB, free: 4.504 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.683e-05/0.1169, allocations: 44.84 kB / 456.3 MB, free: 4.457 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.625e-05/0.1169, allocations: 0 / 456.3 MB, free: 4.457 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.858e-05/0.1169, allocations: 34.56 kB / 456.3 MB, free: 4.414 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.442e-06/0.1169, allocations: 0 / 456.3 MB, free: 4.414 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008546/0.1178, allocations: 457.7 kB / 456.8 MB, free: 3.914 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.478e-05/0.1179, allocations: 55.36 kB / 456.8 MB, free: 3.848 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002238/0.1181, allocations: 225 kB / 457 MB, free: 3.621 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.453e-05/0.1181, allocations: 25.7 kB / 457.1 MB, free: 3.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.045e-05/0.1182, allocations: 132.3 kB / 457.2 MB, free: 3.457 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.828e-05/0.1182, allocations: 43.3 kB / 457.2 MB, free: 3.414 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.347e-06/0.1183, allocations: 8 kB / 457.3 MB, free: 3.406 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.1184, allocations: 330.8 kB / 457.6 MB, free: 3.074 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.937e-05/0.1185, allocations: 27.98 kB / 457.6 MB, free: 3.047 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.545e-05/0.1186, allocations: 58.55 kB / 457.7 MB, free: 2.98 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.819e-05/0.1187, allocations: 43.94 kB / 457.7 MB, free: 2.938 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.1187, allocations: 0 / 457.7 MB, free: 2.938 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002272/0.1189, allocations: 145.4 kB / 457.8 MB, free: 2.789 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.1189, allocations: 4 kB / 457.8 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.1189, allocations: 4 kB / 457.9 MB, free: 2.781 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.119, allocations: 4.062 kB / 457.9 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001643/0.1191, allocations: 39.92 kB / 457.9 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.415e-06/0.1191, allocations: 4 kB / 457.9 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.485e-05/0.1192, allocations: 7.953 kB / 457.9 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.458e-06/0.1193, allocations: 4 kB / 457.9 MB, free: 2.723 MB / 334.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 (16): * Single equations (assignments): 16 * 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 prepare postOptimizeDAE: time 0.0001023/0.1194, allocations: 133.8 kB / 458 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.18e-05/0.1194, allocations: 27.64 kB / 458.1 MB, free: 2.555 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.386e-05/0.1195, allocations: 25.72 kB / 458.1 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.1195, allocations: 0 / 458.1 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1195, allocations: 0 / 458.1 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.1195, allocations: 3.984 kB / 458.1 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005274/0.1201, allocations: 443.2 kB / 458.5 MB, free: 2.043 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.1201, allocations: 0 / 458.5 MB, free: 2.043 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001504/0.1202, allocations: 31.98 kB / 458.6 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.1202, allocations: 4 kB / 458.6 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.1203, allocations: 0 / 458.6 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1203, allocations: 3.938 kB / 458.6 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.1203, allocations: 3.953 kB / 458.6 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003601/0.1206, allocations: 267.3 kB / 458.8 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.903e-05/0.1207, allocations: 101 kB / 458.9 MB, free: 1.605 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.679e-05/0.1208, allocations: 7.938 kB / 458.9 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001155/0.1209, allocations: 11.98 kB / 459 MB, free: 1.586 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.443e-05/0.1209, allocations: 7.953 kB / 459 MB, free: 1.578 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.273e-06/0.121, allocations: 4 kB / 459 MB, free: 1.574 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001541/0.1211, allocations: 160.5 kB / 459.1 MB, free: 1.422 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1211, allocations: 0 / 459.1 MB, free: 1.422 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002571/0.1214, allocations: 32 kB / 459.2 MB, free: 1.391 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (generator.phi,generator.omega_m,generator.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 (12): * Single equations (assignments): 12 * 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.0006114/0.122, allocations: 0.798 MB / 459.9 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002052/0.1222, allocations: 92.06 kB / 460 MB, free: 484 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1222, allocations: 3.938 kB / 460 MB, free: 480 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.397e-05/0.1223, allocations: 47.92 kB / 460.1 MB, free: 432 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004072/0.1227, allocations: 24.66 kB / 460.1 MB, free: 408 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002142/0.1249, allocations: 1.29 MB / 461.4 MB, free: 15.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003166/0.1252, allocations: 0.7283 MB / 462.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001077/0.1253, allocations: 17.53 kB / 462.1 MB, free: 14.28 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.916e-05/0.1254, allocations: 51.41 kB / 462.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1254, allocations: 0 / 462.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01413/0.1396, allocations: 3.324 MB / 465.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002385/0.1399, allocations: 188 kB / 465.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.845/1.985, allocations: 0 / 465.7 MB, free: 10.66 MB / 350.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe 2>&1) Environment - environmentSimulation: