Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical1.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.001305/0.001305, allocations: 119.6 kB / 20.44 MB, free: 1.301 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.001427/0.001427, allocations: 214.6 kB / 23.75 MB, free: 4.527 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.53/1.53, allocations: 230.6 MB / 257.5 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 4.0.0-dev/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 4.0.0-dev/package.mo): time 0.1529/0.1529, allocations: 26.82 MB / 340.7 MB, free: 8.188 MB / 270.1 MB " [Timeout remaining time 180] Using package ThermoPower with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 4.0.0-dev/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.TestElectrical1,fileNamePrefix="ThermoPower_4_0_0-dev_ThermoPower_Test_ElectricalComponents_TestElectrical1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical1,fileNamePrefix="ThermoPower_4_0_0-dev_ThermoPower_Test_ElectricalComponents_TestElectrical1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ThermoPower requested package Modelica of version 4.0.0. Modelica 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.002084/0.002084, allocations: 67.89 kB / 476.8 MB, free: 3.676 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3578/0.3599, allocations: 60.47 MB / 0.5247 GB, free: 9.582 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical1): time 0.003439/0.3633, allocations: 2.102 MB / 0.5268 GB, free: 8.125 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001312/0.3646, allocations: 0.6131 MB / 0.5274 GB, free: 7.688 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000143/0.3648, allocations: 7.438 kB / 0.5274 GB, free: 7.684 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001457/0.3649, allocations: 23.28 kB / 0.5274 GB, free: 7.668 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002432/0.3652, allocations: 71.69 kB / 0.5275 GB, free: 7.617 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001684/0.3653, allocations: 44.86 kB / 0.5275 GB, free: 7.594 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003186/0.3657, allocations: 206.4 kB / 0.5277 GB, free: 7.492 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001496/0.3658, allocations: 31.73 kB / 0.5277 GB, free: 7.477 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000235/0.366, allocations: 88.91 kB / 0.5278 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001773/0.3662, allocations: 86.14 kB / 0.5279 GB, free: 7.395 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.049e-05/0.3662, allocations: 15.78 kB / 0.5279 GB, free: 7.391 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.651e-05/0.3663, allocations: 14.09 kB / 0.5279 GB, free: 7.391 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.52e-05/0.3663, allocations: 34.91 kB / 0.528 GB, free: 7.367 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.104e-05/0.3664, allocations: 89.12 kB / 0.528 GB, free: 7.312 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002803/0.3667, allocations: 160.2 kB / 0.5282 GB, free: 7.242 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3667, allocations: 0 / 0.5282 GB, free: 7.242 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3667, allocations: 3.938 kB / 0.5282 GB, free: 7.238 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.635e-06/0.3667, allocations: 0 / 0.5282 GB, free: 7.238 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0007142/0.3674, allocations: 439.4 kB / 0.5286 GB, free: 6.875 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.3675, allocations: 9.469 kB / 0.5286 GB, free: 6.875 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.878e-05/0.3675, allocations: 41.16 kB / 0.5287 GB, free: 6.828 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.692e-05/0.3676, allocations: 27.27 kB / 0.5287 GB, free: 6.816 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002994/0.3679, allocations: 181.6 kB / 0.5289 GB, free: 6.648 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.536e-05/0.3679, allocations: 8.969 kB / 0.5289 GB, free: 6.645 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.063e-05/0.368, allocations: 16.81 kB / 0.5289 GB, free: 6.637 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002283/0.3682, allocations: 142.2 kB / 0.529 GB, free: 6.543 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.3682, allocations: 0.7031 kB / 0.529 GB, free: 6.543 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.3682, allocations: 5.188 kB / 0.529 GB, free: 6.539 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.044e-06/0.3682, allocations: 2.625 kB / 0.529 GB, free: 6.539 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001835/0.3684, allocations: 77.86 kB / 0.5291 GB, free: 6.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007096/0.3691, allocations: 0.4966 MB / 0.5296 GB, free: 6.113 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002772/0.3694, allocations: 102.1 kB / 0.5297 GB, free: 6.062 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.725e-05/0.3695, allocations: 42.31 kB / 0.5297 GB, free: 6.043 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.877e-05/0.3695, allocations: 9.172 kB / 0.5297 GB, free: 6.035 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.695e-05/0.3695, allocations: 36.27 kB / 0.5298 GB, free: 5.992 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 1.182e-06/0.3695, allocations: 0 / 0.5298 GB, free: 5.992 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007956/0.3703, allocations: 371.6 kB / 0.5301 GB, free: 5.734 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.124e-05/0.3703, allocations: 52.44 kB / 0.5302 GB, free: 5.672 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002813/0.3706, allocations: 227.4 kB / 0.5304 GB, free: 5.523 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.346e-05/0.3706, allocations: 30.77 kB / 0.5304 GB, free: 5.488 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.164e-05/0.3707, allocations: 130.5 kB / 0.5305 GB, free: 5.371 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.658e-05/0.3707, allocations: 48.72 kB / 0.5306 GB, free: 5.332 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.7e-05/0.3708, allocations: 29.89 kB / 0.5306 GB, free: 5.309 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.887e-05/0.3709, allocations: 328.9 kB / 0.5309 GB, free: 4.988 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.591e-05/0.371, allocations: 30.36 kB / 0.531 GB, free: 4.98 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001159/0.3711, allocations: 58.22 kB / 0.531 GB, free: 4.941 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001941/0.3713, allocations: 100.6 kB / 0.5311 GB, free: 4.883 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.52e-07/0.3713, allocations: 0 / 0.5311 GB, free: 4.883 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002883/0.3716, allocations: 145.3 kB / 0.5313 GB, free: 4.805 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.3716, allocations: 6.688 kB / 0.5313 GB, free: 4.805 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.3716, allocations: 5.094 kB / 0.5313 GB, free: 4.801 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.3716, allocations: 0.75 kB / 0.5313 GB, free: 4.801 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001729/0.3718, allocations: 32.84 kB / 0.5313 GB, free: 4.801 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.3718, allocations: 2.438 kB / 0.5313 GB, free: 4.801 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001062/0.3719, allocations: 11.91 kB / 0.5313 GB, free: 4.793 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.3719, allocations: 3.531 kB / 0.5313 GB, free: 4.793 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (16): * Single equations (assignments): 16 * 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 prepare postOptimizeDAE: time 7.716e-05/0.372, allocations: 125.2 kB / 0.5314 GB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.748e-05/0.372, allocations: 29.39 kB / 0.5315 GB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.355e-05/0.3721, allocations: 24.73 kB / 0.5315 GB, free: 4.625 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.3721, allocations: 2.062 kB / 0.5315 GB, free: 4.625 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.3721, allocations: 0.5 kB / 0.5315 GB, free: 4.625 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.3721, allocations: 1.25 kB / 0.5315 GB, free: 4.625 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005454/0.3726, allocations: 413.5 kB / 0.5319 GB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.3726, allocations: 1.188 kB / 0.5319 GB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001557/0.3728, allocations: 30.67 kB / 0.5319 GB, free: 4.293 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.3728, allocations: 1.156 kB / 0.5319 GB, free: 4.293 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.3728, allocations: 5.188 kB / 0.5319 GB, free: 4.289 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.3728, allocations: 0.7031 kB / 0.5319 GB, free: 4.289 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.3728, allocations: 1.25 kB / 0.5319 GB, free: 4.289 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003068/0.3731, allocations: 268.7 kB / 0.5322 GB, free: 4.098 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.857e-05/0.3732, allocations: 23.67 kB / 0.5322 GB, free: 4.086 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.901e-05/0.3732, allocations: 9.031 kB / 0.5322 GB, free: 4.078 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001204/0.3733, allocations: 3.812 kB / 0.5322 GB, free: 4.078 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.663e-05/0.3734, allocations: 14.25 kB / 0.5322 GB, free: 4.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.312e-06/0.3734, allocations: 2.438 kB / 0.5322 GB, free: 4.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001373/0.3735, allocations: 164.5 kB / 0.5324 GB, free: 3.973 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3735, allocations: 0 / 0.5324 GB, free: 3.973 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002676/0.3738, allocations: 36.5 kB / 0.5324 GB, free: 3.965 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (generator.phi,generator.omega_m,generator.omega_e_filt) * 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 (12): * Single equations (assignments): 12 * 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.0004296/0.3742, allocations: 0.7896 MB / 0.5332 GB, free: 3.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002173/0.3744, allocations: 79.53 kB / 0.5333 GB, free: 3.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.3744, allocations: 0 / 0.5333 GB, free: 3.23 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.256e-05/0.3745, allocations: 41.81 kB / 0.5333 GB, free: 3.219 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003907/0.3749, allocations: 31.98 kB / 0.5333 GB, free: 3.207 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002298/0.3772, allocations: 2.284 MB / 0.5356 GB, free: 1.504 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001626/0.3774, allocations: 0.7315 MB / 0.5363 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.662e-05/0.3774, allocations: 14.55 kB / 0.5363 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.165e-05/0.3775, allocations: 57.39 kB / 0.5364 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3775, allocations: 0 / 0.5364 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0336/0.4111, allocations: 3.942 MB / 0.5402 GB, free: 15.74 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11.13, allocations: 17.14 kB / 0.5402 GB, free: 15.72 MB / 398.1 MB " [Timeout remaining time 649] (rm -f ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; mkfifo ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; head -c 1048576 < ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe >> ../files/ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_4_0_0-dev_ThermoPower_Test_ElectricalComponents_TestElectrical1_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=50 --tolerance=1e-06 ThermoPower_4_0_0-dev_ThermoPower_Test_ElectricalComponents_TestElectrical1.fmu > ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.885473572998308] Failed to read output from testmodel.py, exit status != 0: 11.24258797604125 11.268579922 10.897084119 Calling exit ...