Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.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.TestElectrical4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 112.5 kB / 17.69 MB, free: 5.438 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.001361/0.001362, allocations: 191 kB / 18.63 MB, free: 4.508 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.269/1.269, 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.274/0.274, allocations: 48.84 MB / 320.7 MB, free: 11.04 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.001453/0.001453, allocations: 67.91 kB / 391.5 MB, free: 48.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07894/0.08041, allocations: 59.17 MB / 450.7 MB, free: 9.051 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.003291/0.08373, allocations: 2.279 MB / 453 MB, free: 6.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009881/0.08473, allocations: 0.6514 MB / 453.6 MB, free: 6.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.08486, allocations: 4 kB / 453.6 MB, free: 6.086 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001223/0.08499, allocations: 31.66 kB / 453.7 MB, free: 6.055 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002099/0.08521, allocations: 87.27 kB / 453.7 MB, free: 5.969 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001625/0.08538, allocations: 55.92 kB / 453.8 MB, free: 5.914 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002845/0.08568, allocations: 278.7 kB / 454.1 MB, free: 5.641 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001503/0.08584, allocations: 64.7 kB / 454.1 MB, free: 5.578 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000144/0.08599, allocations: 103.6 kB / 454.2 MB, free: 5.477 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001579/0.08615, allocations: 123.3 kB / 454.4 MB, free: 5.355 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.036e-05/0.08619, allocations: 16 kB / 454.4 MB, free: 5.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.158e-05/0.08626, allocations: 20 kB / 454.4 MB, free: 5.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.554e-05/0.08631, allocations: 43.84 kB / 454.4 MB, free: 5.277 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.08643, allocations: 123.3 kB / 454.6 MB, free: 5.156 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002372/0.08667, allocations: 223.1 kB / 454.8 MB, free: 4.938 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.08669, allocations: 4 kB / 454.8 MB, free: 4.934 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.896e-06/0.08669, allocations: 3.984 kB / 454.8 MB, free: 4.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.089e-06/0.0867, allocations: 0 / 454.8 MB, free: 4.93 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0008253/0.08754, allocations: 0.549 MB / 455.3 MB, free: 4.332 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.08758, allocations: 11.89 kB / 455.3 MB, free: 4.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.16e-05/0.08768, allocations: 36.56 kB / 455.4 MB, free: 4.285 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003137/0.088, allocations: 262.8 kB / 455.6 MB, free: 3.992 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.342e-05/0.08803, allocations: 12.38 kB / 455.6 MB, free: 3.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.871e-05/0.08807, allocations: 16.38 kB / 455.7 MB, free: 3.965 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003138/0.08839, allocations: 179.3 kB / 455.8 MB, free: 3.777 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.08841, allocations: 4 kB / 455.8 MB, free: 3.773 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.649e-05/0.08844, allocations: 8 kB / 455.8 MB, free: 3.766 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.08845, allocations: 4 kB / 455.8 MB, free: 3.762 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002632/0.08871, allocations: 111.9 kB / 456 MB, free: 3.652 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008933/0.08962, allocations: 0.6501 MB / 456.6 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002473/0.08988, allocations: 142.4 kB / 456.7 MB, free: 2.793 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001451/0.09003, allocations: 84.69 kB / 456.8 MB, free: 2.707 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.038e-05/0.09007, allocations: 4 kB / 456.8 MB, free: 2.703 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.758e-05/0.09009, allocations: 30.56 kB / 456.9 MB, free: 2.664 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.353e-06/0.0901, allocations: 0 / 456.9 MB, free: 2.664 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.0009936/0.0911, allocations: 0.5477 MB / 457.4 MB, free: 2.066 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.816e-05/0.09115, allocations: 59.39 kB / 457.5 MB, free: 1.996 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002192/0.09137, allocations: 233 kB / 457.7 MB, free: 1.762 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.909e-05/0.0914, allocations: 29.7 kB / 457.7 MB, free: 1.727 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.18e-05/0.09149, allocations: 156.2 kB / 457.9 MB, free: 1.57 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.224e-05/0.09155, allocations: 63.02 kB / 457.9 MB, free: 1.508 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.007e-05/0.09161, allocations: 37.7 kB / 458 MB, free: 1.465 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.09173, allocations: 338.8 kB / 458.3 MB, free: 1.125 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001223/0.09186, allocations: 47.97 kB / 458.4 MB, free: 1.078 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001364/0.092, allocations: 81.55 kB / 458.4 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002534/0.09226, allocations: 141.5 kB / 458.6 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.09227, allocations: 0 / 458.6 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003362/0.09262, allocations: 185.6 kB / 458.8 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/0.09264, allocations: 7.938 kB / 458.8 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-06/0.09265, allocations: 4 kB / 458.8 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.052e-05/0.09266, allocations: 0 / 458.8 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000385/0.09305, allocations: 75.97 kB / 458.8 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001071/0.09414, allocations: 1.437 MB / 460.3 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001386/0.09429, allocations: 8 kB / 460.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.274e-05/0.09431, allocations: 4 kB / 460.3 MB, free: 14.98 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (24): * Single equations (assignments): 23 * 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.0001087/0.09442, allocations: 130 kB / 460.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.597e-05/0.09448, allocations: 23.72 kB / 460.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003361/0.09482, allocations: 189 kB / 460.6 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.09483, allocations: 4 kB / 460.6 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.09484, allocations: 3.984 kB / 460.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.09485, allocations: 0 / 460.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006703/0.09553, allocations: 0.5295 MB / 461.2 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.09554, allocations: 0 / 461.2 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002351/0.09578, allocations: 47.91 kB / 461.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.09579, allocations: 4 kB / 461.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.407e-05/0.09581, allocations: 4 kB / 461.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.09582, allocations: 0 / 461.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.09583, allocations: 0 / 461.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004657/0.0963, allocations: 348.4 kB / 461.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.219e-05/0.0964, allocations: 104.9 kB / 461.7 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.19e-05/0.09644, allocations: 19.92 kB / 461.7 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001499/0.0966, allocations: 4 kB / 461.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.961e-05/0.09666, allocations: 20.06 kB / 461.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.829e-06/0.09667, allocations: 4 kB / 461.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001539/0.09683, allocations: 168.5 kB / 461.9 MB, free: 13.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09684, allocations: 0 / 461.9 MB, free: 13.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002846/0.09713, allocations: 44 kB / 461.9 MB, free: 13.25 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (generator.phi,generator.omega_m,generator.omega_e_filt,grid.port.theta) * 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 (19): * Single equations (assignments): 19 * 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.889e-05/0.09723, allocations: 103.2 kB / 462 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004907/0.09772, allocations: 171.9 kB / 462.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.09774, allocations: 0 / 462.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001367/0.09788, allocations: 71.91 kB / 462.3 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003751/0.09826, allocations: 44.41 kB / 462.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001137/0.09941, allocations: 0.6481 MB / 462.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003836/0.09981, allocations: 0.7598 MB / 463.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.679e-05/0.0999, allocations: 21.55 kB / 463.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.26e-05/0.09997, allocations: 19.44 kB / 463.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.09997, allocations: 0 / 463.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of Templates: time 0.005122/0.1051, allocations: 2.332 MB / 466.1 MB, free: 9.031 MB / 350.1 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.makefile (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4 -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1)