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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001714/0.001714, allocations: 120.1 kB / 19.43 MB, free: 2.398 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001982/0.001982, allocations: 187.4 kB / 22.67 MB, free: 5.113 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.479/1.479, allocations: 207.6 MB / 233.4 MB, free: 11 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3044/0.3044, allocations: 49.52 MB / 335 MB, free: 4.5 MB / 270.1 MB " [Timeout remaining time 179] 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.TestElectrical6,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical6,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "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.002109/0.002109, allocations: 67.91 kB / 474.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1244, allocations: 62.33 MB / 0.5244 GB, free: 14.96 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.004535/0.1289, allocations: 2.998 MB / 0.5273 GB, free: 11.94 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00157/0.1305, allocations: 0.8151 MB / 0.5281 GB, free: 11.12 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001721/0.1307, allocations: 11.94 kB / 0.5281 GB, free: 11.11 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001845/0.1308, allocations: 63.25 kB / 0.5282 GB, free: 11.05 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003726/0.1312, allocations: 138.9 kB / 0.5283 GB, free: 10.91 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002486/0.1315, allocations: 115.8 kB / 0.5284 GB, free: 10.8 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005518/0.132, allocations: 498.3 kB / 0.5289 GB, free: 10.31 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002238/0.1322, allocations: 96.14 kB / 0.529 GB, free: 10.21 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002475/0.1325, allocations: 199.1 kB / 0.5292 GB, free: 10.02 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002935/0.1328, allocations: 199 kB / 0.5294 GB, free: 9.82 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.73e-05/0.1328, allocations: 32 kB / 0.5294 GB, free: 9.789 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001094/0.1329, allocations: 43.98 kB / 0.5294 GB, free: 9.746 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.83e-05/0.133, allocations: 91.55 kB / 0.5295 GB, free: 9.656 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002174/0.1332, allocations: 210.8 kB / 0.5297 GB, free: 9.449 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005036/0.1337, allocations: 418 kB / 0.5301 GB, free: 9.039 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1338, allocations: 4 kB / 0.5301 GB, free: 9.035 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1338, allocations: 0 / 0.5301 GB, free: 9.035 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.268e-06/0.1338, allocations: 3.984 kB / 0.5301 GB, free: 9.031 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.00134/0.1351, allocations: 0.7591 MB / 0.5309 GB, free: 8.223 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.1351, allocations: 12.03 kB / 0.5309 GB, free: 8.211 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.223e-05/0.1352, allocations: 62.72 kB / 0.531 GB, free: 8.141 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001259/0.1354, allocations: 52.61 kB / 0.531 GB, free: 8.09 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000548/0.1359, allocations: 362.4 kB / 0.5313 GB, free: 7.695 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.798e-05/0.1359, allocations: 29.03 kB / 0.5314 GB, free: 7.668 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.461e-05/0.136, allocations: 40.08 kB / 0.5314 GB, free: 7.629 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000528/0.1365, allocations: 297.7 kB / 0.5317 GB, free: 7.32 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.1365, allocations: 0 / 0.5317 GB, free: 7.32 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.635e-05/0.1366, allocations: 12 kB / 0.5317 GB, free: 7.309 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.285e-05/0.1366, allocations: 8 kB / 0.5317 GB, free: 7.301 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004156/0.137, allocations: 202.1 kB / 0.5319 GB, free: 7.105 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001753/0.1387, allocations: 1.116 MB / 0.533 GB, free: 5.914 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004351/0.1392, allocations: 231 kB / 0.5332 GB, free: 5.68 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002225/0.1394, allocations: 108.8 kB / 0.5333 GB, free: 5.57 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.587e-05/0.1394, allocations: 4 kB / 0.5333 GB, free: 5.566 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.72e-05/0.1395, allocations: 39.09 kB / 0.5334 GB, free: 5.52 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.523e-06/0.1395, allocations: 0 / 0.5334 GB, free: 5.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.002068/0.1415, allocations: 0.9375 MB / 0.5343 GB, free: 4.512 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.009e-05/0.1416, allocations: 59.41 kB / 0.5343 GB, free: 4.441 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004498/0.1421, allocations: 357.6 kB / 0.5347 GB, free: 4.082 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.45e-05/0.1421, allocations: 33.7 kB / 0.5347 GB, free: 4.043 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001997/0.1423, allocations: 208.6 kB / 0.5349 GB, free: 3.836 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001253/0.1424, allocations: 126.9 kB / 0.535 GB, free: 3.711 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001275/0.1426, allocations: 74.06 kB / 0.5351 GB, free: 3.629 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002321/0.1428, allocations: 350.7 kB / 0.5354 GB, free: 3.277 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001921/0.143, allocations: 88.7 kB / 0.5355 GB, free: 3.191 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002153/0.1432, allocations: 129.8 kB / 0.5356 GB, free: 3.051 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004225/0.1436, allocations: 251.8 kB / 0.5359 GB, free: 2.789 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.1436, allocations: 0 / 0.5359 GB, free: 2.789 MB / 414.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009666/0.1446, allocations: 417.6 kB / 0.5363 GB, free: 2.371 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.1446, allocations: 11.91 kB / 0.5363 GB, free: 2.359 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-06/0.1446, allocations: 0 / 0.5363 GB, free: 2.359 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006111/0.1452, allocations: 124.8 kB / 0.5364 GB, free: 2.234 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004367/0.1457, allocations: 87.88 kB / 0.5365 GB, free: 2.148 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2245/0.3702, allocations: 3.332 MB / 0.5398 GB, free: 21.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002908/0.3705, allocations: 16.98 kB / 0.5398 GB, free: 21.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.332e-05/0.3705, allocations: 12.75 kB / 0.5398 GB, free: 21.8 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.0001498/0.3706, allocations: 150.3 kB / 0.5399 GB, free: 21.68 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.139e-05/0.3707, allocations: 40.34 kB / 0.54 GB, free: 21.68 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004767/0.3712, allocations: 303 kB / 0.5403 GB, free: 21.64 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.3712, allocations: 10.2 kB / 0.5403 GB, free: 21.64 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-06/0.3712, allocations: 0 / 0.5403 GB, free: 21.64 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/0.3712, allocations: 3.188 kB / 0.5403 GB, free: 21.64 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009354/0.3721, allocations: 0.7513 MB / 0.541 GB, free: 21.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3721, allocations: 0 / 0.541 GB, free: 21.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003866/0.3725, allocations: 80.36 kB / 0.5411 GB, free: 21.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.64e-06/0.3725, allocations: 2.531 kB / 0.5411 GB, free: 21.34 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.482e-05/0.3726, allocations: 14.52 kB / 0.5411 GB, free: 21.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.3726, allocations: 1.062 kB / 0.5411 GB, free: 21.34 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3726, allocations: 1.094 kB / 0.5411 GB, free: 21.34 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005998/0.3732, allocations: 497.9 kB / 0.5416 GB, free: 21.2 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001134/0.3733, allocations: 136.7 kB / 0.5417 GB, free: 21.11 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.353e-05/0.3733, allocations: 15.55 kB / 0.5417 GB, free: 21.11 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002065/0.3735, allocations: 13.64 kB / 0.5417 GB, free: 21.11 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.013e-05/0.3736, allocations: 16.8 kB / 0.5417 GB, free: 21.11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.792e-05/0.3736, allocations: 10.59 kB / 0.5418 GB, free: 21.11 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000258/0.3739, allocations: 252.4 kB / 0.542 GB, free: 20.98 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3739, allocations: 0 / 0.542 GB, free: 20.98 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004042/0.3743, allocations: 90.53 kB / 0.5421 GB, free: 20.97 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.0008666/0.3751, allocations: 1.045 MB / 0.5431 GB, free: 20.18 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009364/0.3761, allocations: 431.2 kB / 0.5435 GB, free: 19.98 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3761, allocations: 0 / 0.5435 GB, free: 19.98 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001947/0.3763, allocations: 115.3 kB / 0.5436 GB, free: 19.95 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004799/0.3767, allocations: 81.88 kB / 0.5437 GB, free: 19.91 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005207/0.382, allocations: 3.968 MB / 0.5476 GB, free: 17.56 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002834/0.3822, allocations: 0.8253 MB / 0.5484 GB, free: 16.85 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001689/0.3824, allocations: 40.42 kB / 0.5484 GB, free: 16.84 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002021/0.3826, allocations: 146 kB / 0.5486 GB, free: 16.73 MB / 414.1 MB Notification: Performance of SimCode: time 1.313e-06/0.3826, allocations: 1.156 kB / 0.5486 GB, free: 16.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04057/0.4232, allocations: 8.843 MB / 0.5572 GB, free: 15.22 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.6/13.02, allocations: 9.938 kB / 0.5572 GB, free: 15.21 MB / 414.1 MB " [Timeout remaining time 647] (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 os._exit(0), Time elapsed: 15.890296431956813] Failed to read output from testmodel.py, exit status != 0: 13.121622540988028 13.145674179 13.007540071 Calling exit ...