Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) 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: translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 108.6 kB / 17.69 MB, free: 5.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 191 kB / 18.63 MB, free: 4.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.265/1.265, allocations: 205.1 MB / 224.5 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2589/0.2589, allocations: 48.84 MB / 320.7 MB, free: 11.03 MB / 270.1 MB 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.001558/0.001558, allocations: 70.84 kB / 391.5 MB, free: 48.62 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07861/0.08018, allocations: 59.16 MB / 450.7 MB, free: 9.055 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical1): time 0.00322/0.08343, allocations: 2.061 MB / 452.7 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001042/0.08449, allocations: 0.6048 MB / 453.3 MB, free: 6.359 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.08463, allocations: 4 kB / 453.4 MB, free: 6.355 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001171/0.08475, allocations: 23.72 kB / 453.4 MB, free: 6.332 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00022/0.085, allocations: 71.47 kB / 453.4 MB, free: 6.262 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001565/0.08516, allocations: 39.89 kB / 453.5 MB, free: 6.223 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002545/0.08543, allocations: 215 kB / 453.7 MB, free: 6.012 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.08556, allocations: 40.28 kB / 453.7 MB, free: 5.973 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001318/0.08569, allocations: 75.66 kB / 453.8 MB, free: 5.898 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001514/0.08586, allocations: 95.53 kB / 453.9 MB, free: 5.805 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.698e-05/0.08589, allocations: 12 kB / 453.9 MB, free: 5.793 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.17e-05/0.08595, allocations: 12 kB / 453.9 MB, free: 5.781 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.741e-05/0.08599, allocations: 35.8 kB / 454 MB, free: 5.746 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.505e-05/0.08608, allocations: 87.53 kB / 454 MB, free: 5.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000214/0.0863, allocations: 163.3 kB / 454.2 MB, free: 5.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.08631, allocations: 0 / 454.2 MB, free: 5.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.08632, allocations: 0 / 454.2 MB, free: 5.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.93e-06/0.08633, allocations: 0 / 454.2 MB, free: 5.5 MB / 334.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.0007219/0.08706, allocations: 498.5 kB / 454.7 MB, free: 4.965 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.234e-05/0.0871, allocations: 15.89 kB / 454.7 MB, free: 4.949 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.954e-05/0.08719, allocations: 24.66 kB / 454.7 MB, free: 4.926 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003244/0.08752, allocations: 244.8 kB / 455 MB, free: 4.645 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.08755, allocations: 8.375 kB / 455 MB, free: 4.637 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.463e-05/0.08759, allocations: 20.38 kB / 455 MB, free: 4.617 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002296/0.08782, allocations: 131.5 kB / 455.1 MB, free: 4.477 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.08785, allocations: 3.984 kB / 455.1 MB, free: 4.473 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.08786, allocations: 0 / 455.1 MB, free: 4.473 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.08787, allocations: 4 kB / 455.1 MB, free: 4.469 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001946/0.08807, allocations: 75.95 kB / 455.2 MB, free: 4.395 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007847/0.08887, allocations: 0.5528 MB / 455.8 MB, free: 3.781 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002817/0.08916, allocations: 106.5 kB / 455.9 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.364e-05/0.08927, allocations: 44.84 kB / 455.9 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.405e-05/0.08929, allocations: 7.938 kB / 455.9 MB, free: 3.613 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.217e-05/0.08932, allocations: 38.56 kB / 456 MB, free: 3.566 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.293e-06/0.08933, allocations: 0 / 456 MB, free: 3.566 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007914/0.09012, allocations: 450.2 kB / 456.4 MB, free: 3.074 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.816e-05/0.09017, allocations: 51.41 kB / 456.4 MB, free: 3.012 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002186/0.0904, allocations: 236.9 kB / 456.7 MB, free: 2.773 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.58e-05/0.09042, allocations: 25.7 kB / 456.7 MB, free: 2.742 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.415e-05/0.0905, allocations: 124.4 kB / 456.8 MB, free: 2.617 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.041e-05/0.09055, allocations: 47.3 kB / 456.9 MB, free: 2.57 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.851e-05/0.0906, allocations: 29.7 kB / 456.9 MB, free: 2.535 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.09072, allocations: 330.8 kB / 457.2 MB, free: 2.203 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.04e-05/0.09081, allocations: 31.98 kB / 457.3 MB, free: 2.172 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.137e-05/0.09091, allocations: 58.56 kB / 457.3 MB, free: 2.105 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001626/0.09108, allocations: 94.48 kB / 457.4 MB, free: 2.004 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.09109, allocations: 0 / 457.4 MB, free: 2.004 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000248/0.09134, allocations: 141.3 kB / 457.5 MB, free: 1.859 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.09137, allocations: 7.938 kB / 457.5 MB, free: 1.852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.09138, allocations: 12 kB / 457.6 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.0914, allocations: 0 / 457.6 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001518/0.09155, allocations: 35.98 kB / 457.6 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.09157, allocations: 0 / 457.6 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001045/0.09168, allocations: 11.97 kB / 457.6 MB, free: 1.793 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.798e-06/0.09169, allocations: 4 kB / 457.6 MB, free: 1.789 MB / 334.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 9.32e-05/0.09179, allocations: 130.4 kB / 457.7 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.034e-05/0.09185, allocations: 19.75 kB / 457.8 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.397e-05/0.0919, allocations: 25.7 kB / 457.8 MB, free: 1.613 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.09191, allocations: 0 / 457.8 MB, free: 1.613 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.09192, allocations: 4 kB / 457.8 MB, free: 1.609 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.09193, allocations: 0 / 457.8 MB, free: 1.609 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005098/0.09244, allocations: 434.4 kB / 458.2 MB, free: 1.129 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.09246, allocations: 0 / 458.2 MB, free: 1.129 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001613/0.09262, allocations: 31.92 kB / 458.2 MB, free: 1.098 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.888e-06/0.09264, allocations: 0 / 458.2 MB, free: 1.098 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.09265, allocations: 11.92 kB / 458.3 MB, free: 1.086 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.09266, allocations: 8 kB / 458.3 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.09267, allocations: 0 / 458.3 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003291/0.093, allocations: 251.2 kB / 458.5 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.486e-05/0.0931, allocations: 104.9 kB / 458.6 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.49e-05/0.09314, allocations: 0 / 458.6 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001281/0.09328, allocations: 8 kB / 458.6 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.473e-05/0.09332, allocations: 15.92 kB / 458.6 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.011e-06/0.09333, allocations: 0 / 458.6 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001393/0.09348, allocations: 172.4 kB / 458.8 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09348, allocations: 0 / 458.8 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002661/0.09375, allocations: 28 kB / 458.8 MB, free: 492 kB / 334.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 9.693e-05/0.09386, allocations: 107.1 kB / 458.9 MB, free: 372 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002074/0.09407, allocations: 91.84 kB / 459 MB, free: 280 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.09408, allocations: 128 / 459 MB, free: 280 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.715e-05/0.09418, allocations: 43.92 kB / 459.1 MB, free: 236 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003607/0.09454, allocations: 44.62 kB / 459.1 MB, free: 192 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008911/0.09545, allocations: 0.5065 MB / 459.6 MB, free: 15.65 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002643/0.09572, allocations: 0.7241 MB / 460.3 MB, free: 14.9 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.841e-05/0.0958, allocations: 25.47 kB / 460.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.338e-05/0.09585, allocations: 15.44 kB / 460.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.09585, allocations: 0 / 460.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of Templates: time 0.004249/0.1001, allocations: 1.567 MB / 461.9 MB, free: 13.3 MB / 350.1 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.makefile (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1 -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe 2>&1)