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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001516/0.001516, allocations: 113.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001551/0.001551, allocations: 214.7 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.396/1.396, allocations: 207.6 MB / 234.5 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo): time 0.2954/0.2954, allocations: 49.56 MB / 336.3 MB, free: 4.113 MB / 270.1 MB " [Timeout remaining time 179] Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00235/0.00235, allocations: 71.91 kB / 476.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1193, allocations: 62.43 MB / 0.5261 GB, free: 14.33 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.004858/0.1242, allocations: 3.17 MB / 0.5292 GB, free: 11.14 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001736/0.1259, allocations: 0.8305 MB / 0.53 GB, free: 10.3 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003108/0.1262, allocations: 11.94 kB / 0.53 GB, free: 10.29 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000226/0.1264, allocations: 63.25 kB / 0.5301 GB, free: 10.23 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004849/0.1269, allocations: 158.8 kB / 0.5303 GB, free: 10.07 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003265/0.1272, allocations: 115.8 kB / 0.5304 GB, free: 9.957 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007261/0.128, allocations: 0.5295 MB / 0.5309 GB, free: 9.426 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002569/0.1282, allocations: 106 kB / 0.531 GB, free: 9.316 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003604/0.1286, allocations: 219 kB / 0.5312 GB, free: 9.102 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000392/0.129, allocations: 218.9 kB / 0.5314 GB, free: 8.887 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.074e-05/0.1291, allocations: 36 kB / 0.5314 GB, free: 8.852 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001148/0.1292, allocations: 40 kB / 0.5315 GB, free: 8.812 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.703e-05/0.1293, allocations: 95.59 kB / 0.5316 GB, free: 8.719 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002462/0.1295, allocations: 230.7 kB / 0.5318 GB, free: 8.492 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005659/0.1301, allocations: 437.9 kB / 0.5322 GB, free: 8.062 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.1301, allocations: 0 / 0.5322 GB, free: 8.062 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1301, allocations: 0 / 0.5322 GB, free: 8.062 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.62e-05/0.1301, allocations: 0 / 0.5322 GB, free: 8.062 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.001428/0.1315, allocations: 0.7381 MB / 0.5329 GB, free: 7.293 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.1316, allocations: 12.03 kB / 0.5329 GB, free: 7.281 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.496e-05/0.1317, allocations: 66.72 kB / 0.533 GB, free: 7.207 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001321/0.1318, allocations: 56.61 kB / 0.5331 GB, free: 7.152 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005431/0.1323, allocations: 320.5 kB / 0.5334 GB, free: 6.812 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.252e-05/0.1324, allocations: 25.03 kB / 0.5334 GB, free: 6.789 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.789e-05/0.1324, allocations: 40.33 kB / 0.5334 GB, free: 6.75 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005166/0.1329, allocations: 318 kB / 0.5337 GB, free: 6.422 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.744e-05/0.133, allocations: 3.984 kB / 0.5337 GB, free: 6.418 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.638e-05/0.133, allocations: 12 kB / 0.5337 GB, free: 6.406 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.133, allocations: 8 kB / 0.5338 GB, free: 6.398 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003981/0.1334, allocations: 214.4 kB / 0.534 GB, free: 6.191 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001777/0.1352, allocations: 1.104 MB / 0.535 GB, free: 5.027 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004967/0.1357, allocations: 247.6 kB / 0.5353 GB, free: 4.777 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002083/0.1359, allocations: 117.4 kB / 0.5354 GB, free: 4.66 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.705e-05/0.1359, allocations: 4.281 kB / 0.5354 GB, free: 4.656 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.1359, allocations: 38.78 kB / 0.5354 GB, free: 4.609 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 1.493e-06/0.1359, allocations: 0 / 0.5354 GB, free: 4.609 MB / 414.1 MB Notification: Performance of matching and sorting (n=35): time 0.002062/0.138, allocations: 0.8688 MB / 0.5363 GB, free: 3.707 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.04e-05/0.138, allocations: 59.34 kB / 0.5363 GB, free: 3.637 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004073/0.1384, allocations: 377.6 kB / 0.5367 GB, free: 3.258 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.909e-05/0.1385, allocations: 37.7 kB / 0.5367 GB, free: 3.215 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001733/0.1387, allocations: 224.9 kB / 0.5369 GB, free: 2.992 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.1388, allocations: 135.2 kB / 0.5371 GB, free: 2.859 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.1389, allocations: 70.14 kB / 0.5371 GB, free: 2.785 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.139, allocations: 354.8 kB / 0.5375 GB, free: 2.43 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001809/0.1392, allocations: 88.84 kB / 0.5376 GB, free: 2.344 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002184/0.1394, allocations: 144.6 kB / 0.5377 GB, free: 2.188 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004055/0.1399, allocations: 263.9 kB / 0.5379 GB, free: 1.914 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.1399, allocations: 0 / 0.5379 GB, free: 1.914 MB / 414.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.00054/0.1404, allocations: 341.2 kB / 0.5383 GB, free: 1.574 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.1404, allocations: 8 kB / 0.5383 GB, free: 1.566 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.1404, allocations: 0 / 0.5383 GB, free: 1.566 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/0.1404, allocations: 8.125 kB / 0.5383 GB, free: 1.559 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007086/0.1411, allocations: 155.8 kB / 0.5384 GB, free: 1.406 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1977/0.3388, allocations: 1.337 MB / 0.5397 GB, free: 21.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004023/0.3392, allocations: 13.39 kB / 0.5398 GB, free: 21.97 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.825e-05/0.3393, allocations: 9.906 kB / 0.5398 GB, free: 21.97 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.0001867/0.3395, allocations: 156.6 kB / 0.5399 GB, free: 21.86 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.068e-05/0.3395, allocations: 47.03 kB / 0.54 GB, free: 21.86 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005632/0.3401, allocations: 309.1 kB / 0.5403 GB, free: 21.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.722e-06/0.3401, allocations: 8.969 kB / 0.5403 GB, free: 21.82 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.3401, allocations: 0.5625 kB / 0.5403 GB, free: 21.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.3401, allocations: 2.109 kB / 0.5403 GB, free: 21.82 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001031/0.3412, allocations: 0.7566 MB / 0.541 GB, free: 21.55 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.217e-06/0.3412, allocations: 0 / 0.541 GB, free: 21.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004123/0.3416, allocations: 83.05 kB / 0.5411 GB, free: 21.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.753e-06/0.3416, allocations: 2.094 kB / 0.5411 GB, free: 21.55 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.166e-05/0.3416, allocations: 11.27 kB / 0.5411 GB, free: 21.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.3416, allocations: 1.406 kB / 0.5411 GB, free: 21.55 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.3416, allocations: 4.5 kB / 0.5411 GB, free: 21.55 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006462/0.3422, allocations: 0.5167 MB / 0.5416 GB, free: 21.41 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001274/0.3424, allocations: 66.59 kB / 0.5417 GB, free: 21.41 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.789e-05/0.3424, allocations: 7.344 kB / 0.5417 GB, free: 21.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002259/0.3426, allocations: 13.92 kB / 0.5417 GB, free: 21.41 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.891e-05/0.3427, allocations: 25.69 kB / 0.5417 GB, free: 21.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.654e-05/0.3427, allocations: 8.344 kB / 0.5417 GB, free: 21.41 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002789/0.343, allocations: 273.4 kB / 0.542 GB, free: 21.32 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.343, allocations: 2.734 kB / 0.542 GB, free: 21.32 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003528/0.3434, allocations: 88.94 kB / 0.5421 GB, free: 21.32 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.0008149/0.3442, allocations: 1.056 MB / 0.5431 GB, free: 20.64 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006493/0.3448, allocations: 271.1 kB / 0.5434 GB, free: 20.57 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.3448, allocations: 0 / 0.5434 GB, free: 20.57 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000208/0.345, allocations: 128.7 kB / 0.5435 GB, free: 20.54 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005009/0.3455, allocations: 87.58 kB / 0.5436 GB, free: 20.5 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00464/0.3502, allocations: 3.985 MB / 0.5475 GB, free: 18.14 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002604/0.3504, allocations: 0.826 MB / 0.5483 GB, free: 17.45 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001855/0.3506, allocations: 50.61 kB / 0.5483 GB, free: 17.43 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002002/0.3508, allocations: 150.7 kB / 0.5485 GB, free: 17.32 MB / 414.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3508, allocations: 4 kB / 0.5485 GB, free: 17.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.039/0.3898, allocations: 9.04 MB / 0.5573 GB, free: 15.89 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.89, allocations: 10.25 kB / 0.5573 GB, free: 15.89 MB / 414.1 MB " [Timeout remaining time 648] (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 --stepSize=0.12 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.686960072955117] Failed to read output from testmodel.py, exit status != 0: 11.999235100112855 12.015968096 11.882495579 Calling exit ...