Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.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.TestElectrical2,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical2,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2",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.001381/0.001381, allocations: 113 kB / 17.07 MB, free: 6.008 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.001385/0.001385, allocations: 189.4 kB / 18 MB, free: 5.09 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.371/1.371, allocations: 205.1 MB / 223.9 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2921/0.2921, allocations: 48.84 MB / 320.1 MB, free: 11.04 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.002124/0.002124, allocations: 71.89 kB / 450 MB, free: 9.078 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.107, allocations: 59.16 MB / 0.4973 GB, free: 13.79 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical2): time 0.00354/0.1106, allocations: 2.176 MB / 0.4994 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001142/0.1118, allocations: 0.628 MB / 0.5 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.1119, allocations: 4 kB / 0.5 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001355/0.1121, allocations: 31.66 kB / 0.5 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002282/0.1123, allocations: 71.41 kB / 0.5001 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001581/0.1125, allocations: 51.94 kB / 0.5001 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003182/0.1128, allocations: 250.9 kB / 0.5004 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001614/0.113, allocations: 52.36 kB / 0.5004 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001597/0.1131, allocations: 99.56 kB / 0.5005 GB, free: 10.4 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001738/0.1133, allocations: 111.4 kB / 0.5006 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.947e-05/0.1134, allocations: 12 kB / 0.5006 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.99e-05/0.1134, allocations: 20 kB / 0.5007 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.252e-05/0.1135, allocations: 35.84 kB / 0.5007 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001152/0.1136, allocations: 111.3 kB / 0.5008 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002881/0.1139, allocations: 203 kB / 0.501 GB, free: 9.918 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1139, allocations: 0 / 0.501 GB, free: 9.918 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1139, allocations: 0 / 0.501 GB, free: 9.918 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.1139, allocations: 0 / 0.501 GB, free: 9.918 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0009048/0.1148, allocations: 0.5372 MB / 0.5015 GB, free: 9.332 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.1149, allocations: 11.89 kB / 0.5015 GB, free: 9.32 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.195e-05/0.1149, allocations: 46.73 kB / 0.5016 GB, free: 9.266 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.671e-05/0.115, allocations: 24.8 kB / 0.5016 GB, free: 9.242 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003502/0.1154, allocations: 259 kB / 0.5018 GB, free: 8.953 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.501e-05/0.1154, allocations: 12.38 kB / 0.5019 GB, free: 8.941 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.791e-05/0.1155, allocations: 20.36 kB / 0.5019 GB, free: 8.922 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003077/0.1158, allocations: 151.4 kB / 0.502 GB, free: 8.762 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.1158, allocations: 3.953 kB / 0.502 GB, free: 8.758 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.898e-05/0.1158, allocations: 15.92 kB / 0.502 GB, free: 8.742 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.1158, allocations: 0 / 0.502 GB, free: 8.742 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002695/0.1161, allocations: 95.94 kB / 0.5021 GB, free: 8.648 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008971/0.117, allocations: 0.6075 MB / 0.5027 GB, free: 7.98 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002702/0.1173, allocations: 122.6 kB / 0.5028 GB, free: 7.852 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001559/0.1175, allocations: 72.83 kB / 0.5029 GB, free: 7.777 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.688e-05/0.1175, allocations: 0 / 0.5029 GB, free: 7.777 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.961e-05/0.1175, allocations: 46.44 kB / 0.503 GB, free: 7.723 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 1.152e-06/0.1176, allocations: 0 / 0.503 GB, free: 7.723 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001142/0.1187, allocations: 0.5565 MB / 0.5035 GB, free: 7.113 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.919e-05/0.1187, allocations: 55.41 kB / 0.5036 GB, free: 7.047 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002531/0.119, allocations: 229 kB / 0.5038 GB, free: 6.812 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.026e-05/0.119, allocations: 29.7 kB / 0.5038 GB, free: 6.777 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.748e-05/0.1191, allocations: 132.5 kB / 0.5039 GB, free: 6.645 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.638e-05/0.1192, allocations: 71.41 kB / 0.504 GB, free: 6.574 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.87e-05/0.1193, allocations: 37.72 kB / 0.504 GB, free: 6.531 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.1195, allocations: 330.8 kB / 0.5043 GB, free: 6.199 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000135/0.1196, allocations: 55.97 kB / 0.5044 GB, free: 6.145 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001549/0.1198, allocations: 74.53 kB / 0.5045 GB, free: 6.062 MB / 398.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: grid.f = grid.fnom (0.15915494309189535 * generator.omega_e_nom = grid.fnom) Notification: Performance of analyzeInitialSystem (initialization): time 0.001229/0.121, allocations: 428.4 kB / 0.5049 GB, free: 5.617 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.121, allocations: 3.938 kB / 0.5049 GB, free: 5.613 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003827/0.1214, allocations: 197.3 kB / 0.5051 GB, free: 5.414 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.1214, allocations: 4 kB / 0.5051 GB, free: 5.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.1214, allocations: 0 / 0.5051 GB, free: 5.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.1215, allocations: 4 kB / 0.5051 GB, free: 5.406 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000258/0.1217, allocations: 59.91 kB / 0.5051 GB, free: 5.348 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.1217, allocations: 0 / 0.5051 GB, free: 5.348 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001255/0.1219, allocations: 12.02 kB / 0.5051 GB, free: 5.336 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.668e-05/0.1219, allocations: 16 kB / 0.5052 GB, free: 5.32 MB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: grid.f = grid.fnom. 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 (23): * Single equations (assignments): 23 * 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 prepare postOptimizeDAE: time 0.0001294/0.122, allocations: 129.8 kB / 0.5053 GB, free: 5.184 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.772e-05/0.1221, allocations: 23.8 kB / 0.5053 GB, free: 5.16 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.626e-05/0.1222, allocations: 30.17 kB / 0.5053 GB, free: 5.129 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.1222, allocations: 0 / 0.5053 GB, free: 5.129 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1222, allocations: 3.938 kB / 0.5053 GB, free: 5.125 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.1222, allocations: 0 / 0.5053 GB, free: 5.125 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000805/0.123, allocations: 0.5256 MB / 0.5059 GB, free: 4.543 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.123, allocations: 0 / 0.5059 GB, free: 4.543 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002685/0.1233, allocations: 47.97 kB / 0.5059 GB, free: 4.496 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.1233, allocations: 0 / 0.5059 GB, free: 4.496 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.518e-05/0.1233, allocations: 4 kB / 0.5059 GB, free: 4.492 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.1233, allocations: 4 kB / 0.5059 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.199e-05/0.1234, allocations: 7.969 kB / 0.5059 GB, free: 4.48 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005587/0.1239, allocations: 339.1 kB / 0.5062 GB, free: 4.133 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001095/0.124, allocations: 109 kB / 0.5063 GB, free: 4.008 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.286e-05/0.1241, allocations: 4 kB / 0.5063 GB, free: 4.004 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001418/0.1242, allocations: 4 kB / 0.5063 GB, free: 4 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.033e-05/0.1243, allocations: 15.98 kB / 0.5064 GB, free: 3.984 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.052e-05/0.1243, allocations: 3.938 kB / 0.5064 GB, free: 3.98 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001662/0.1245, allocations: 172.5 kB / 0.5065 GB, free: 3.812 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1245, allocations: 0 / 0.5065 GB, free: 3.812 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002868/0.1248, allocations: 40 kB / 0.5066 GB, free: 3.773 MB / 398.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 (18): * Single equations (assignments): 18 * 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.0008455/0.1256, allocations: 0.8649 MB / 0.5074 GB, free: 2.883 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003484/0.126, allocations: 132.2 kB / 0.5075 GB, free: 2.754 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.126, allocations: 0 / 0.5075 GB, free: 2.754 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001475/0.1262, allocations: 67.91 kB / 0.5076 GB, free: 2.688 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003889/0.1266, allocations: 44.38 kB / 0.5076 GB, free: 2.645 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003321/0.1299, allocations: 2.45 MB / 0.51 GB, free: 104 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004128/0.1303, allocations: 0.7436 MB / 0.5108 GB, free: 15.33 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.928e-05/0.1304, allocations: 21.53 kB / 0.5108 GB, free: 15.31 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.1306, allocations: 67.36 kB / 0.5109 GB, free: 15.25 MB / 414.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1306, allocations: 4 kB / 0.5109 GB, free: 15.24 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02813/0.1587, allocations: 4.316 MB / 0.5151 GB, free: 10.88 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.177/8.335, allocations: 3.984 kB / 0.5151 GB, free: 10.88 MB / 414.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe 2>&1)