Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.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.TestElectrical3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 113 kB / 17.68 MB, free: 5.355 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.001266/0.001266, allocations: 190.9 kB / 18.62 MB, free: 4.434 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.288/1.288, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2611/0.2611, allocations: 48.85 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.001465/0.001465, allocations: 67.66 kB / 391.5 MB, free: 48.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07809/0.07957, allocations: 59.17 MB / 450.7 MB, free: 9.043 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.003283/0.08288, allocations: 2.286 MB / 453 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009431/0.08385, allocations: 0.6514 MB / 453.6 MB, free: 6.074 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001061/0.08396, allocations: 4 kB / 453.6 MB, free: 6.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001201/0.0841, allocations: 39.59 kB / 453.7 MB, free: 6.031 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002192/0.08432, allocations: 75.33 kB / 453.7 MB, free: 5.957 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001512/0.08448, allocations: 63.86 kB / 453.8 MB, free: 5.895 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002751/0.08477, allocations: 282.8 kB / 454.1 MB, free: 5.617 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001468/0.08492, allocations: 73.31 kB / 454.1 MB, free: 5.547 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001352/0.08507, allocations: 111.6 kB / 454.3 MB, free: 5.438 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001606/0.08523, allocations: 123.3 kB / 454.4 MB, free: 5.316 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.253e-05/0.08527, allocations: 20 kB / 454.4 MB, free: 5.297 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.857e-05/0.08534, allocations: 20 kB / 454.4 MB, free: 5.277 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.603e-05/0.08539, allocations: 43.84 kB / 454.5 MB, free: 5.234 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001001/0.08549, allocations: 127.3 kB / 454.6 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002317/0.08573, allocations: 235.1 kB / 454.8 MB, free: 4.879 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.786e-06/0.08574, allocations: 0 / 454.8 MB, free: 4.879 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.08575, allocations: 0 / 454.8 MB, free: 4.879 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5e-06/0.08576, allocations: 0 / 454.8 MB, free: 4.879 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0008222/0.08659, allocations: 0.5685 MB / 455.4 MB, free: 4.262 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.982e-05/0.08662, allocations: 11.89 kB / 455.4 MB, free: 4.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.299e-05/0.08672, allocations: 32.56 kB / 455.4 MB, free: 4.219 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003171/0.08705, allocations: 270.7 kB / 455.7 MB, free: 3.918 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.92e-05/0.08711, allocations: 42.27 kB / 455.7 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.715e-05/0.08715, allocations: 16.38 kB / 455.7 MB, free: 3.855 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003053/0.08746, allocations: 182.9 kB / 455.9 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.08748, allocations: 7.906 kB / 455.9 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.612e-05/0.0875, allocations: 4 kB / 455.9 MB, free: 3.652 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.08751, allocations: 4 kB / 455.9 MB, free: 3.648 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002713/0.08779, allocations: 123.9 kB / 456.1 MB, free: 3.527 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008734/0.08867, allocations: 0.6617 MB / 456.7 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000328/0.08901, allocations: 154.5 kB / 456.9 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001521/0.08917, allocations: 80.77 kB / 457 MB, free: 2.562 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.573e-05/0.0892, allocations: 4 kB / 457 MB, free: 2.559 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.507e-05/0.08923, allocations: 38.56 kB / 457 MB, free: 2.512 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.272e-06/0.08924, allocations: 0 / 457 MB, free: 2.512 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.001038/0.09028, allocations: 0.573 MB / 457.6 MB, free: 1.887 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.577e-05/0.09033, allocations: 55.41 kB / 457.6 MB, free: 1.82 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002142/0.09055, allocations: 241 kB / 457.9 MB, free: 1.578 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.903e-05/0.09057, allocations: 29.7 kB / 457.9 MB, free: 1.543 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.217e-05/0.09066, allocations: 152.3 kB / 458 MB, free: 1.391 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.047e-05/0.09072, allocations: 67 kB / 458.1 MB, free: 1.324 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.099e-05/0.09078, allocations: 37.7 kB / 458.1 MB, free: 1.281 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.09091, allocations: 342.8 kB / 458.5 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001427/0.09106, allocations: 55.97 kB / 458.5 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001404/0.09121, allocations: 85.61 kB / 458.6 MB, free: 0.793 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002619/0.09148, allocations: 141.4 kB / 458.7 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.09149, allocations: 0 / 458.7 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003559/0.09185, allocations: 217.1 kB / 459 MB, free: 440 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.09187, allocations: 7.984 kB / 459 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.227e-06/0.09188, allocations: 0 / 459 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.09189, allocations: 4 kB / 459 MB, free: 428 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003947/0.09229, allocations: 71.95 kB / 459 MB, free: 356 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.09231, allocations: 0 / 459 MB, free: 356 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000128/0.09244, allocations: 12 kB / 459.1 MB, free: 344 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.157e-05/0.09246, allocations: 8.031 kB / 459.1 MB, free: 336 kB / 334.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: 1 (BreakerCommand.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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 0.0001111/0.09258, allocations: 141.7 kB / 459.2 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.578e-05/0.09263, allocations: 23.72 kB / 459.2 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.05e-05/0.09268, allocations: 22.19 kB / 459.2 MB, free: 144 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.09269, allocations: 4 kB / 459.2 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.0927, allocations: 0 / 459.2 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.09271, allocations: 3.984 kB / 459.3 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007088/0.09342, allocations: 0.5424 MB / 459.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.09344, allocations: 0 / 459.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003611/0.0938, allocations: 59.97 kB / 459.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.786e-06/0.09381, allocations: 0 / 459.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.09383, allocations: 4 kB / 459.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.09384, allocations: 3.984 kB / 459.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.09385, allocations: 3.938 kB / 459.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005084/0.09436, allocations: 351.4 kB / 460.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.846e-05/0.09447, allocations: 112.8 kB / 460.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.242e-05/0.09451, allocations: 7.938 kB / 460.3 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001511/0.09467, allocations: 8 kB / 460.3 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.769e-05/0.09474, allocations: 19.91 kB / 460.4 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/0.09475, allocations: 4 kB / 460.4 MB, free: 14.94 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001552/0.09491, allocations: 176.5 kB / 460.5 MB, free: 14.76 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.09492, allocations: 0 / 460.5 MB, free: 14.76 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002712/0.0952, allocations: 44 kB / 460.6 MB, free: 14.72 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: 1 (BreakerCommand.y) * 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 9.662e-05/0.0953, allocations: 99.19 kB / 460.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003449/0.09565, allocations: 152 kB / 460.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.09566, allocations: 0 / 460.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001503/0.09582, allocations: 83.95 kB / 460.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003785/0.0962, allocations: 39.55 kB / 460.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001074/0.09729, allocations: 0.6401 MB / 461.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003189/0.09762, allocations: 0.7517 MB / 462.3 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.611e-05/0.09771, allocations: 25.94 kB / 462.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.46e-05/0.09777, allocations: 19.44 kB / 462.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.09778, allocations: 0 / 462.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of Templates: time 0.005063/0.1028, allocations: 1.999 MB / 464.4 MB, free: 10.86 MB / 350.1 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.makefile (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3 -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe 2>&1)