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.001682/0.001682, allocations: 99.66 kB / 21.18 MB, free: 0.5273 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.001516/0.001516, allocations: 213.2 kB / 24.48 MB, free: 3.84 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.387/1.387, allocations: 207.7 MB / 235.3 MB, free: 9.812 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.297/0.297, allocations: 49.61 MB / 337.2 MB, free: 3.887 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: translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical7,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical7,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7") [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.002357/0.002357, allocations: 75.84 kB / 477.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1119, allocations: 62.43 MB / 0.5274 GB, free: 13.65 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.004581/0.1165, allocations: 2.886 MB / 0.5302 GB, free: 10.75 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001681/0.1181, allocations: 0.8149 MB / 0.531 GB, free: 9.922 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000182/0.1183, allocations: 11.94 kB / 0.531 GB, free: 9.91 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002037/0.1185, allocations: 55.31 kB / 0.531 GB, free: 9.855 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003827/0.1189, allocations: 146.8 kB / 0.5312 GB, free: 9.711 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000288/0.1192, allocations: 131.8 kB / 0.5313 GB, free: 9.582 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005864/0.1198, allocations: 0.5255 MB / 0.5318 GB, free: 9.055 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002274/0.12, allocations: 97.95 kB / 0.5319 GB, free: 8.953 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002857/0.1203, allocations: 215.1 kB / 0.5321 GB, free: 8.742 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003035/0.1206, allocations: 202.8 kB / 0.5323 GB, free: 8.543 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.159e-05/0.1207, allocations: 32 kB / 0.5323 GB, free: 8.512 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001105/0.1208, allocations: 40 kB / 0.5324 GB, free: 8.473 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.075e-05/0.1209, allocations: 91.61 kB / 0.5325 GB, free: 8.383 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001984/0.1211, allocations: 198.9 kB / 0.5327 GB, free: 8.188 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005346/0.1216, allocations: 437.9 kB / 0.5331 GB, free: 7.758 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.1216, allocations: 0 / 0.5331 GB, free: 7.758 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1216, allocations: 0 / 0.5331 GB, free: 7.758 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.788e-06/0.1216, allocations: 3.984 kB / 0.5331 GB, free: 7.754 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.001465/0.1231, allocations: 0.7303 MB / 0.5338 GB, free: 6.992 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.369e-05/0.1231, allocations: 12.03 kB / 0.5338 GB, free: 6.98 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001497/0.1233, allocations: 56.61 kB / 0.5339 GB, free: 6.926 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005806/0.1238, allocations: 312.5 kB / 0.5342 GB, free: 6.594 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.268e-05/0.1239, allocations: 29.03 kB / 0.5342 GB, free: 6.566 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.039e-05/0.1239, allocations: 40.33 kB / 0.5342 GB, free: 6.527 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005636/0.1245, allocations: 326.1 kB / 0.5345 GB, free: 6.191 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.816e-05/0.1245, allocations: 0 / 0.5345 GB, free: 6.191 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.71e-05/0.1246, allocations: 12 kB / 0.5345 GB, free: 6.18 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.1246, allocations: 8 kB / 0.5346 GB, free: 6.172 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004257/0.125, allocations: 206.5 kB / 0.5348 GB, free: 5.973 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001833/0.1268, allocations: 0.976 MB / 0.5357 GB, free: 4.949 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005214/0.1273, allocations: 237.3 kB / 0.5359 GB, free: 4.711 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000224/0.1276, allocations: 121.3 kB / 0.536 GB, free: 4.59 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.948e-05/0.1276, allocations: 4.281 kB / 0.5361 GB, free: 4.586 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.406e-05/0.1276, allocations: 46.84 kB / 0.5361 GB, free: 4.531 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 1.763e-06/0.1276, allocations: 0 / 0.5361 GB, free: 4.531 MB / 414.1 MB Notification: Performance of matching and sorting (n=35): time 0.002185/0.1298, allocations: 0.8691 MB / 0.5369 GB, free: 3.629 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.128e-05/0.1299, allocations: 55.41 kB / 0.537 GB, free: 3.562 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004614/0.1303, allocations: 377.6 kB / 0.5374 GB, free: 3.188 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.873e-05/0.1304, allocations: 29.7 kB / 0.5374 GB, free: 3.152 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001882/0.1305, allocations: 224.9 kB / 0.5376 GB, free: 2.93 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/0.1307, allocations: 130.9 kB / 0.5377 GB, free: 2.801 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001204/0.1308, allocations: 78.08 kB / 0.5378 GB, free: 2.719 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.131, allocations: 354.7 kB / 0.5381 GB, free: 2.363 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002017/0.1312, allocations: 100.8 kB / 0.5382 GB, free: 2.266 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002447/0.1314, allocations: 144.6 kB / 0.5384 GB, free: 2.109 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004473/0.1319, allocations: 252 kB / 0.5386 GB, free: 1.848 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1319, allocations: 0 / 0.5386 GB, free: 1.848 MB / 414.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006097/0.1325, allocations: 349.2 kB / 0.5389 GB, free: 1.5 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.1325, allocations: 8 kB / 0.539 GB, free: 1.492 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.1325, allocations: 0 / 0.539 GB, free: 1.492 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.1325, allocations: 4 kB / 0.539 GB, free: 1.488 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007544/0.1333, allocations: 147.8 kB / 0.5391 GB, free: 1.344 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1915/0.3248, allocations: 1.31 MB / 0.5404 GB, free: 22.21 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003711/0.3252, allocations: 13.11 kB / 0.5404 GB, free: 22.21 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.707e-05/0.3252, allocations: 14.72 kB / 0.5404 GB, free: 22.21 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.0001665/0.3253, allocations: 154.6 kB / 0.5406 GB, free: 22.09 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.924e-05/0.3254, allocations: 41.53 kB / 0.5406 GB, free: 22.09 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000533/0.3259, allocations: 318.8 kB / 0.5409 GB, free: 22.05 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.326, allocations: 3.938 kB / 0.5409 GB, free: 22.05 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.326, allocations: 0.5156 kB / 0.5409 GB, free: 22.05 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.326, allocations: 3.406 kB / 0.5409 GB, free: 22.05 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009309/0.3269, allocations: 0.6674 MB / 0.5416 GB, free: 21.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.3269, allocations: 0.7031 kB / 0.5416 GB, free: 21.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000411/0.3273, allocations: 80.55 kB / 0.5416 GB, free: 21.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.431e-06/0.3273, allocations: 4.266 kB / 0.5416 GB, free: 21.82 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.307e-05/0.3273, allocations: 11.61 kB / 0.5416 GB, free: 21.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.3273, allocations: 1.469 kB / 0.5416 GB, free: 21.82 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.3273, allocations: 1.422 kB / 0.5416 GB, free: 21.82 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006349/0.328, allocations: 0.5161 MB / 0.5422 GB, free: 21.68 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001331/0.3281, allocations: 63.09 kB / 0.5422 GB, free: 21.68 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.701e-05/0.3282, allocations: 6.719 kB / 0.5422 GB, free: 21.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002284/0.3284, allocations: 12.2 kB / 0.5422 GB, free: 21.68 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.828e-05/0.3284, allocations: 26.8 kB / 0.5423 GB, free: 21.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.757e-05/0.3285, allocations: 11.25 kB / 0.5423 GB, free: 21.68 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000238/0.3287, allocations: 262.2 kB / 0.5425 GB, free: 21.59 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3287, allocations: 0 / 0.5425 GB, free: 21.59 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003532/0.3291, allocations: 85 kB / 0.5426 GB, free: 21.59 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 8.788e-05/0.3291, allocations: 106.4 kB / 0.5427 GB, free: 21.5 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005842/0.3297, allocations: 257.2 kB / 0.5429 GB, free: 21.5 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.182e-05/0.3297, allocations: 0 / 0.5429 GB, free: 21.5 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002032/0.3299, allocations: 125.7 kB / 0.5431 GB, free: 21.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005295/0.3305, allocations: 83.41 kB / 0.5431 GB, free: 21.48 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001765/0.3322, allocations: 1.152 MB / 0.5443 GB, free: 20.81 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002162/0.3324, allocations: 221.2 kB / 0.5445 GB, free: 20.71 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000122/0.3326, allocations: 32.44 kB / 0.5445 GB, free: 20.71 MB / 414.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3326, allocations: 0 / 0.5445 GB, free: 20.71 MB / 414.1 MB Notification: Performance of Templates: time 0.01014/0.3427, allocations: 5.622 MB / 0.55 GB, free: 20.14 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.makefile [Timeout 660] (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 & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.617536462843418] Failed to read output from testmodel.py, exit status != 0: 0.35101380990818143 0.36232147000000003 0.238181888 Calling exit ...