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.001431/0.001431, allocations: 105.6 kB / 17.06 MB, free: 6.117 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.001699/0.001699, allocations: 195 kB / 18 MB, free: 5.191 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.422/1.422, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2786/0.2786, allocations: 48.84 MB / 320.1 MB, free: 11.02 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.002339/0.002339, allocations: 67.91 kB / 450 MB, free: 9.074 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1347, allocations: 59.16 MB / 0.4972 GB, free: 13.78 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical5): time 0.004072/0.1389, allocations: 2.642 MB / 0.4998 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00174/0.1406, allocations: 0.7564 MB / 0.5006 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003556/0.141, allocations: 7.938 kB / 0.5006 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002254/0.1413, allocations: 47.52 kB / 0.5006 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000537/0.1418, allocations: 111 kB / 0.5007 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003068/0.1421, allocations: 87.88 kB / 0.5008 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005429/0.1427, allocations: 398.2 kB / 0.5012 GB, free: 9.707 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001991/0.1429, allocations: 85.78 kB / 0.5013 GB, free: 9.621 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002377/0.1432, allocations: 167.3 kB / 0.5014 GB, free: 9.457 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002029/0.1434, allocations: 159.1 kB / 0.5016 GB, free: 9.301 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.643e-05/0.1434, allocations: 24 kB / 0.5016 GB, free: 9.277 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.332e-05/0.1435, allocations: 35.98 kB / 0.5016 GB, free: 9.242 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.628e-05/0.1436, allocations: 59.77 kB / 0.5017 GB, free: 9.184 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001495/0.1437, allocations: 171 kB / 0.5019 GB, free: 9.016 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003455/0.1441, allocations: 322.8 kB / 0.5022 GB, free: 8.699 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.1441, allocations: 8 kB / 0.5022 GB, free: 8.691 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1441, allocations: 0 / 0.5022 GB, free: 8.691 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.1441, allocations: 0 / 0.5022 GB, free: 8.691 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.001064/0.1452, allocations: 0.662 MB / 0.5028 GB, free: 7.98 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.1453, allocations: 11.89 kB / 0.5028 GB, free: 7.969 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.779e-05/0.1453, allocations: 66.66 kB / 0.5029 GB, free: 7.895 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001104/0.1454, allocations: 40.47 kB / 0.5029 GB, free: 7.855 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000461/0.1459, allocations: 320 kB / 0.5032 GB, free: 7.508 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.182e-05/0.1459, allocations: 16.81 kB / 0.5033 GB, free: 7.492 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.521e-05/0.146, allocations: 24.38 kB / 0.5033 GB, free: 7.469 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000401/0.1464, allocations: 246.8 kB / 0.5035 GB, free: 7.211 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.1464, allocations: 4 kB / 0.5035 GB, free: 7.207 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.14e-05/0.1465, allocations: 8 kB / 0.5035 GB, free: 7.199 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-06/0.1465, allocations: 8 kB / 0.5035 GB, free: 7.191 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003517/0.1468, allocations: 177.6 kB / 0.5037 GB, free: 7.016 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001106/0.1479, allocations: 0.8555 MB / 0.5045 GB, free: 6.098 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003206/0.1483, allocations: 186.6 kB / 0.5047 GB, free: 5.906 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001968/0.1485, allocations: 112.7 kB / 0.5048 GB, free: 5.793 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.95e-05/0.1485, allocations: 0 / 0.5048 GB, free: 5.793 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.376e-05/0.1485, allocations: 38.56 kB / 0.5049 GB, free: 5.746 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.152e-06/0.1486, allocations: 0 / 0.5049 GB, free: 5.746 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.001326/0.1499, allocations: 0.7365 MB / 0.5056 GB, free: 4.961 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.819e-05/0.1499, allocations: 55.41 kB / 0.5056 GB, free: 4.895 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002941/0.1502, allocations: 300.5 kB / 0.5059 GB, free: 4.586 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.237e-05/0.1503, allocations: 33.7 kB / 0.5059 GB, free: 4.547 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.1504, allocations: 184.6 kB / 0.5061 GB, free: 4.363 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.63e-05/0.1505, allocations: 94.56 kB / 0.5062 GB, free: 4.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.115e-05/0.1505, allocations: 49.7 kB / 0.5063 GB, free: 4.215 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.1507, allocations: 342.8 kB / 0.5066 GB, free: 3.871 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001657/0.1509, allocations: 79.95 kB / 0.5067 GB, free: 3.793 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001792/0.151, allocations: 110.8 kB / 0.5068 GB, free: 3.676 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003378/0.1514, allocations: 184.2 kB / 0.5069 GB, free: 3.488 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.1514, allocations: 0 / 0.5069 GB, free: 3.488 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006204/0.152, allocations: 330.9 kB / 0.5073 GB, free: 3.156 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.885e-05/0.1521, allocations: 11.91 kB / 0.5073 GB, free: 3.145 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.1521, allocations: 0 / 0.5073 GB, free: 3.145 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002997/0.1524, allocations: 52.81 kB / 0.5073 GB, free: 3.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003768/0.1528, allocations: 79.95 kB / 0.5074 GB, free: 3.012 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002376/0.1551, allocations: 3.028 MB / 0.5104 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002179/0.1554, allocations: 27.77 kB / 0.5104 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.816e-05/0.1554, allocations: 12 kB / 0.5104 GB, free: 15.66 MB / 414.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.0001506/0.1556, allocations: 141.8 kB / 0.5105 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.243e-05/0.1556, allocations: 31.62 kB / 0.5106 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004374/0.1561, allocations: 257.3 kB / 0.5108 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.139e-05/0.1561, allocations: 7.938 kB / 0.5108 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-06/0.1561, allocations: 0 / 0.5108 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.1561, allocations: 3.938 kB / 0.5108 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008975/0.157, allocations: 0.6627 MB / 0.5115 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.157, allocations: 0 / 0.5115 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003063/0.1574, allocations: 67.89 kB / 0.5115 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.1574, allocations: 4 kB / 0.5115 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.808e-05/0.1574, allocations: 7.938 kB / 0.5115 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.646e-06/0.1574, allocations: 4 kB / 0.5115 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.1574, allocations: 3.984 kB / 0.5115 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006018/0.158, allocations: 448.4 kB / 0.512 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001321/0.1582, allocations: 120.8 kB / 0.5121 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.075e-05/0.1582, allocations: 19.91 kB / 0.5121 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001853/0.1584, allocations: 8 kB / 0.5121 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.657e-05/0.1585, allocations: 19.97 kB / 0.5121 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.041e-05/0.1585, allocations: 8 kB / 0.5121 GB, free: 13.76 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002009/0.1587, allocations: 219.1 kB / 0.5124 GB, free: 13.55 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1587, allocations: 0 / 0.5124 GB, free: 13.55 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003543/0.1591, allocations: 68 kB / 0.5124 GB, free: 13.48 MB / 414.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.0008793/0.1599, allocations: 0.9775 MB / 0.5134 GB, free: 12.47 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000793/0.1607, allocations: 366.6 kB / 0.5137 GB, free: 12.1 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1608, allocations: 0 / 0.5137 GB, free: 12.1 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001882/0.161, allocations: 107.8 kB / 0.5138 GB, free: 12 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004219/0.1614, allocations: 53.06 kB / 0.5139 GB, free: 11.95 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004296/0.1657, allocations: 3.367 MB / 0.5172 GB, free: 8.488 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000332/0.166, allocations: 0.7915 MB / 0.5179 GB, free: 7.668 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001326/0.1662, allocations: 26.97 kB / 0.518 GB, free: 7.637 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001639/0.1664, allocations: 123.4 kB / 0.5181 GB, free: 7.516 MB / 414.1 MB Notification: Performance of SimCode: time 1.413e-06/0.1664, allocations: 0 / 0.5181 GB, free: 7.516 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03395/0.2003, allocations: 7.145 MB / 0.5251 GB, free: 320 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.809/10.01, allocations: 7.938 kB / 0.5251 GB, free: 312 kB / 414.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)