Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.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.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",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.00138/0.00138, allocations: 112.8 kB / 17.11 MB, free: 5.75 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.001339/0.001339, allocations: 197.4 kB / 18.06 MB, free: 4.848 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.492/1.492, allocations: 207.6 MB / 226.4 MB, free: 11.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2958/0.2958, allocations: 49.53 MB / 325.8 MB, free: 7.453 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.002068/0.002068, allocations: 67.89 kB / 462.1 MB, free: 1.727 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1109, allocations: 62.33 MB / 0.5121 GB, free: 3.203 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.004852/0.1158, allocations: 3.154 MB / 0.5152 GB, free: 24 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001769/0.1176, allocations: 0.8382 MB / 0.516 GB, free: 15.18 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003239/0.1179, allocations: 7.938 kB / 0.516 GB, free: 15.17 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002629/0.1182, allocations: 63.31 kB / 0.5161 GB, free: 15.11 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006695/0.1188, allocations: 158.7 kB / 0.5162 GB, free: 14.95 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003669/0.1192, allocations: 123.8 kB / 0.5163 GB, free: 14.83 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007924/0.12, allocations: 0.5101 MB / 0.5168 GB, free: 14.32 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002775/0.1203, allocations: 109.4 kB / 0.517 GB, free: 14.2 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003531/0.1206, allocations: 211.1 kB / 0.5172 GB, free: 14 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003307/0.1209, allocations: 226.8 kB / 0.5174 GB, free: 13.77 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.239e-05/0.121, allocations: 36 kB / 0.5174 GB, free: 13.74 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001018/0.1211, allocations: 36 kB / 0.5174 GB, free: 13.7 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001038/0.1212, allocations: 95.61 kB / 0.5175 GB, free: 13.61 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002299/0.1214, allocations: 230.6 kB / 0.5177 GB, free: 13.38 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005717/0.122, allocations: 445.8 kB / 0.5182 GB, free: 12.95 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.122, allocations: 0 / 0.5182 GB, free: 12.95 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.122, allocations: 0 / 0.5182 GB, free: 12.95 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.122, allocations: 4 kB / 0.5182 GB, free: 12.94 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001456/0.1235, allocations: 0.8057 MB / 0.519 GB, free: 12.09 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.1235, allocations: 19.83 kB / 0.519 GB, free: 12.07 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.43e-05/0.1236, allocations: 66.72 kB / 0.519 GB, free: 11.99 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001325/0.1237, allocations: 56.61 kB / 0.5191 GB, free: 11.94 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005725/0.1243, allocations: 374.3 kB / 0.5195 GB, free: 11.53 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.038e-05/0.1243, allocations: 33.03 kB / 0.5195 GB, free: 11.5 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.871e-05/0.1244, allocations: 44.31 kB / 0.5195 GB, free: 11.46 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00055/0.125, allocations: 314 kB / 0.5198 GB, free: 11.13 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/0.125, allocations: 0 / 0.5198 GB, free: 11.13 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.049e-05/0.125, allocations: 12 kB / 0.5198 GB, free: 11.12 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/0.125, allocations: 4 kB / 0.5198 GB, free: 11.12 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004285/0.1255, allocations: 214.4 kB / 0.5201 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001934/0.1274, allocations: 1.176 MB / 0.5212 GB, free: 9.66 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005037/0.1279, allocations: 243.6 kB / 0.5214 GB, free: 9.414 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002075/0.1281, allocations: 113.4 kB / 0.5215 GB, free: 9.301 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.428e-05/0.1281, allocations: 4.281 kB / 0.5215 GB, free: 9.297 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.583e-05/0.1282, allocations: 42.84 kB / 0.5216 GB, free: 9.246 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 1.363e-06/0.1282, allocations: 0 / 0.5216 GB, free: 9.246 MB / 414.1 MB Notification: Performance of matching and sorting (n=35): time 0.002147/0.1303, allocations: 1.085 MB / 0.5226 GB, free: 8.074 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.12e-05/0.1304, allocations: 55.41 kB / 0.5227 GB, free: 8.008 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004141/0.1308, allocations: 381.6 kB / 0.5231 GB, free: 7.629 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.352e-05/0.1308, allocations: 33.7 kB / 0.5231 GB, free: 7.59 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000171/0.131, allocations: 225.2 kB / 0.5233 GB, free: 7.367 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/0.1311, allocations: 134.8 kB / 0.5234 GB, free: 7.234 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001663/0.1313, allocations: 70.14 kB / 0.5235 GB, free: 7.16 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.1314, allocations: 354.8 kB / 0.5238 GB, free: 6.805 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001836/0.1316, allocations: 92.83 kB / 0.5239 GB, free: 6.715 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002175/0.1318, allocations: 144.6 kB / 0.5241 GB, free: 6.559 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004049/0.1322, allocations: 256 kB / 0.5243 GB, free: 6.293 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.1322, allocations: 3.938 kB / 0.5243 GB, free: 6.289 MB / 414.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000544/0.1328, allocations: 341.2 kB / 0.5246 GB, free: 5.949 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.1328, allocations: 8.125 kB / 0.5246 GB, free: 5.941 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.627e-06/0.1328, allocations: 8 kB / 0.5247 GB, free: 5.934 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.1328, allocations: 0 / 0.5247 GB, free: 5.934 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007328/0.1335, allocations: 151.8 kB / 0.5248 GB, free: 5.785 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001222/0.1348, allocations: 1.445 MB / 0.5262 GB, free: 4.199 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000241/0.135, allocations: 12.2 kB / 0.5262 GB, free: 4.188 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.48e-05/0.135, allocations: 20 kB / 0.5262 GB, free: 4.168 MB / 414.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 (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * 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: Performance of prepare postOptimizeDAE: time 0.0001873/0.1352, allocations: 153.7 kB / 0.5264 GB, free: 4.008 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.75e-05/0.1353, allocations: 47.66 kB / 0.5264 GB, free: 3.961 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005533/0.1359, allocations: 317.9 kB / 0.5267 GB, free: 3.645 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.1359, allocations: 4 kB / 0.5267 GB, free: 3.641 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-06/0.1359, allocations: 0 / 0.5267 GB, free: 3.641 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.1359, allocations: 3.938 kB / 0.5267 GB, free: 3.637 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001125/0.137, allocations: 0.7836 MB / 0.5275 GB, free: 2.797 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.137, allocations: 7.984 kB / 0.5275 GB, free: 2.789 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004185/0.1374, allocations: 75.97 kB / 0.5276 GB, free: 2.715 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.1374, allocations: 0 / 0.5276 GB, free: 2.715 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.276e-05/0.1374, allocations: 11.94 kB / 0.5276 GB, free: 2.703 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.057e-06/0.1374, allocations: 3.984 kB / 0.5276 GB, free: 2.699 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1374, allocations: 0 / 0.5276 GB, free: 2.699 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007654/0.1382, allocations: 0.5169 MB / 0.5281 GB, free: 2.164 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001573/0.1384, allocations: 140.8 kB / 0.5282 GB, free: 2.008 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.128e-05/0.1384, allocations: 8 kB / 0.5283 GB, free: 2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002293/0.1386, allocations: 11.95 kB / 0.5283 GB, free: 1.988 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.599e-05/0.1387, allocations: 19.97 kB / 0.5283 GB, free: 1.969 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.835e-05/0.1387, allocations: 11.98 kB / 0.5283 GB, free: 1.957 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002925/0.139, allocations: 267.2 kB / 0.5285 GB, free: 1.695 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.139, allocations: 0 / 0.5285 GB, free: 1.695 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003501/0.1394, allocations: 91.94 kB / 0.5286 GB, free: 1.605 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (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,secondaryController.powerOffset) * 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 (36): * Single equations (assignments): 36 * 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.001099/0.1405, allocations: 1.056 MB / 0.5297 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006879/0.1411, allocations: 280.2 kB / 0.5299 GB, free: 252 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.1412, allocations: 4 kB / 0.5299 GB, free: 248 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002214/0.1414, allocations: 119.8 kB / 0.5301 GB, free: 128 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005272/0.1419, allocations: 77.83 kB / 0.5301 GB, free: 48 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1994/0.3413, allocations: 3.977 MB / 0.534 GB, free: 20.95 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003208/0.3417, allocations: 0.8289 MB / 0.5348 GB, free: 20.24 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002008/0.3419, allocations: 46.75 kB / 0.5349 GB, free: 20.23 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002135/0.3421, allocations: 154.2 kB / 0.535 GB, free: 20.19 MB / 414.1 MB Notification: Performance of SimCode: time 1.673e-06/0.3421, allocations: 0 / 0.535 GB, free: 20.19 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03881/0.3809, allocations: 8.728 MB / 0.5435 GB, free: 19.11 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.642/9.022, allocations: 13.39 kB / 0.5435 GB, free: 19.1 MB / 414.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1)