Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.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.001692/0.001692, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001841/0.001841, allocations: 212.6 kB / 24.51 MB, free: 3.941 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.458/1.458, allocations: 207.7 MB / 235.4 MB, free: 9.789 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.3069/0.3069, allocations: 49.61 MB / 337.2 MB, free: 3.891 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.TestElectrical6,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical6,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6",fmuType="cs",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.002137/0.002137, allocations: 71.89 kB / 477.1 MB, free: 12.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1228, allocations: 62.42 MB / 0.5269 GB, free: 14.15 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.004239/0.127, allocations: 2.743 MB / 0.5296 GB, free: 11.39 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001362/0.1284, allocations: 0.7722 MB / 0.5303 GB, free: 10.61 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000152/0.1285, allocations: 11.94 kB / 0.5303 GB, free: 10.6 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00017/0.1287, allocations: 51.39 kB / 0.5304 GB, free: 10.55 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003497/0.129, allocations: 154.8 kB / 0.5305 GB, free: 10.39 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002375/0.1293, allocations: 107.8 kB / 0.5306 GB, free: 10.29 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005402/0.1298, allocations: 490.3 kB / 0.5311 GB, free: 9.809 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002071/0.13, allocations: 104.7 kB / 0.5312 GB, free: 9.703 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000249/0.1303, allocations: 195.1 kB / 0.5314 GB, free: 9.512 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000286/0.1305, allocations: 206.9 kB / 0.5316 GB, free: 9.309 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.603e-05/0.1306, allocations: 36 kB / 0.5316 GB, free: 9.273 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.101e-05/0.1307, allocations: 36 kB / 0.5317 GB, free: 9.238 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.476e-05/0.1308, allocations: 91.61 kB / 0.5318 GB, free: 9.148 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001722/0.131, allocations: 175 kB / 0.5319 GB, free: 8.977 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004674/0.1314, allocations: 418 kB / 0.5323 GB, free: 8.566 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1314, allocations: 0 / 0.5323 GB, free: 8.566 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.123e-06/0.1314, allocations: 3.938 kB / 0.5323 GB, free: 8.562 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.1314, allocations: 0 / 0.5323 GB, free: 8.562 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001342/0.1328, allocations: 0.6838 MB / 0.533 GB, free: 7.848 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.1328, allocations: 12.03 kB / 0.533 GB, free: 7.836 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.695e-05/0.1328, allocations: 4.844 kB / 0.533 GB, free: 7.832 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.311e-05/0.1329, allocations: 74.72 kB / 0.5331 GB, free: 7.75 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001216/0.133, allocations: 52.61 kB / 0.5331 GB, free: 7.699 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004831/0.1335, allocations: 296.6 kB / 0.5334 GB, free: 7.383 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.081e-05/0.1335, allocations: 21.03 kB / 0.5334 GB, free: 7.363 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.699e-05/0.1336, allocations: 43.88 kB / 0.5335 GB, free: 7.32 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005719/0.1342, allocations: 297.9 kB / 0.5338 GB, free: 7.012 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.719e-05/0.1342, allocations: 4 kB / 0.5338 GB, free: 7.008 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.974e-05/0.1342, allocations: 12 kB / 0.5338 GB, free: 6.996 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.1342, allocations: 11.94 kB / 0.5338 GB, free: 6.984 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004178/0.1347, allocations: 206.4 kB / 0.534 GB, free: 6.785 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001632/0.1363, allocations: 0.9713 MB / 0.5349 GB, free: 5.754 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000407/0.1367, allocations: 236.6 kB / 0.5352 GB, free: 5.516 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001976/0.1369, allocations: 112.8 kB / 0.5353 GB, free: 5.402 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.535e-05/0.1369, allocations: 4 kB / 0.5353 GB, free: 5.398 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.085e-05/0.1369, allocations: 42.44 kB / 0.5353 GB, free: 5.348 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.372e-06/0.137, allocations: 0 / 0.5353 GB, free: 5.348 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.001767/0.1387, allocations: 0.8048 MB / 0.5361 GB, free: 4.508 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.13e-05/0.1388, allocations: 55.41 kB / 0.5361 GB, free: 4.441 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004076/0.1392, allocations: 357.6 kB / 0.5365 GB, free: 4.078 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.981e-05/0.1392, allocations: 33.7 kB / 0.5365 GB, free: 4.039 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001651/0.1394, allocations: 208.6 kB / 0.5367 GB, free: 3.832 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.1395, allocations: 126.9 kB / 0.5368 GB, free: 3.707 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001121/0.1396, allocations: 66.08 kB / 0.5369 GB, free: 3.633 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.1397, allocations: 350.7 kB / 0.5372 GB, free: 3.281 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001867/0.1399, allocations: 92.7 kB / 0.5373 GB, free: 3.191 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002117/0.1401, allocations: 137.5 kB / 0.5375 GB, free: 3.043 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004017/0.1405, allocations: 235.8 kB / 0.5377 GB, free: 2.797 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.1405, allocations: 4 kB / 0.5377 GB, free: 2.793 MB / 414.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009687/0.1415, allocations: 417.6 kB / 0.5381 GB, free: 2.375 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.1415, allocations: 4 kB / 0.5381 GB, free: 2.371 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.1415, allocations: 4 kB / 0.5381 GB, free: 2.367 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006334/0.1422, allocations: 120.8 kB / 0.5382 GB, free: 2.246 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004362/0.1426, allocations: 91.88 kB / 0.5383 GB, free: 2.156 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2838/0.4264, allocations: 3.116 MB / 0.5413 GB, free: 21.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003586/0.4268, allocations: 11.88 kB / 0.5413 GB, free: 21.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.038e-05/0.4268, allocations: 12.59 kB / 0.5414 GB, free: 21.54 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 (36): * Single equations (assignments): 34 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001915/0.427, allocations: 156 kB / 0.5415 GB, free: 21.42 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.414e-05/0.4271, allocations: 42 kB / 0.5415 GB, free: 21.42 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005213/0.4276, allocations: 300 kB / 0.5418 GB, free: 21.38 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.4276, allocations: 3.438 kB / 0.5418 GB, free: 21.38 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.274e-06/0.4276, allocations: 8.094 kB / 0.5418 GB, free: 21.38 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.301e-06/0.4276, allocations: 1.922 kB / 0.5418 GB, free: 21.38 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009266/0.4285, allocations: 0.6831 MB / 0.5425 GB, free: 21.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.4285, allocations: 0 / 0.5425 GB, free: 21.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004034/0.4289, allocations: 79 kB / 0.5426 GB, free: 21.12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.4289, allocations: 2.844 kB / 0.5426 GB, free: 21.12 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.435e-05/0.429, allocations: 10 kB / 0.5426 GB, free: 21.11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.429, allocations: 1.281 kB / 0.5426 GB, free: 21.11 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.429, allocations: 4.172 kB / 0.5426 GB, free: 21.11 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006/0.4296, allocations: 0.4908 MB / 0.5431 GB, free: 20.98 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000119/0.4297, allocations: 57.67 kB / 0.5431 GB, free: 20.98 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.662e-05/0.4297, allocations: 10.56 kB / 0.5431 GB, free: 20.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002385/0.43, allocations: 13.92 kB / 0.5432 GB, free: 20.97 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.263e-05/0.43, allocations: 19.92 kB / 0.5432 GB, free: 20.97 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.861e-05/0.4301, allocations: 10.12 kB / 0.5432 GB, free: 20.97 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002879/0.4303, allocations: 254.7 kB / 0.5434 GB, free: 20.88 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4303, allocations: 1.094 kB / 0.5434 GB, free: 20.88 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004254/0.4308, allocations: 89.56 kB / 0.5435 GB, free: 20.88 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (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) * 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 (34): * Single equations (assignments): 34 * 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.0008627/0.4316, allocations: 1.043 MB / 0.5445 GB, free: 20.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009842/0.4326, allocations: 427.5 kB / 0.5449 GB, free: 19.89 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.4326, allocations: 3.812 kB / 0.5449 GB, free: 19.89 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002058/0.4328, allocations: 111.9 kB / 0.5451 GB, free: 19.86 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005084/0.4333, allocations: 79.73 kB / 0.5451 GB, free: 19.83 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005852/0.4392, allocations: 3.963 MB / 0.549 GB, free: 17.47 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002528/0.4394, allocations: 220.4 kB / 0.5492 GB, free: 17.38 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002154/0.4397, allocations: 42.12 kB / 0.5493 GB, free: 17.37 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002084/0.4399, allocations: 142.2 kB / 0.5494 GB, free: 17.27 MB / 414.1 MB Notification: Performance of SimCode: time 1.192e-06/0.4399, allocations: 1.219 kB / 0.5494 GB, free: 17.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03834/0.4782, allocations: 9.142 MB / 0.5583 GB, free: 15.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.33/13.81, allocations: 7.031 kB / 0.5583 GB, free: 15.58 MB / 414.1 MB " [Timeout remaining time 646] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6_fmu --startTime=0 --stopTime=40 --stepSize=0.016 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.805924264946952] Failed to read output from testmodel.py, exit status != 0: 13.987725269049406 14.007078824 13.871491673 Calling exit ...