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.001256/0.001256, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001213/0.001213, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.363/1.363, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2954/0.2954, allocations: 48.84 MB / 320.6 MB, free: 11.09 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.001785/0.001785, allocations: 68.81 kB / 390.7 MB, free: 48.8 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1083, allocations: 59.16 MB / 449.9 MB, free: 9.766 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.004144/0.1125, allocations: 2.285 MB / 452.2 MB, free: 7.457 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001431/0.114, allocations: 0.6553 MB / 452.8 MB, free: 6.793 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000251/0.1142, allocations: 7.938 kB / 452.9 MB, free: 6.785 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001944/0.1145, allocations: 31.66 kB / 452.9 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003526/0.1149, allocations: 79.33 kB / 453 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002216/0.1151, allocations: 67.84 kB / 453 MB, free: 6.609 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003741/0.1155, allocations: 278.8 kB / 453.3 MB, free: 6.336 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001971/0.1157, allocations: 73.3 kB / 453.4 MB, free: 6.266 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002183/0.1159, allocations: 115.5 kB / 453.5 MB, free: 6.152 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002175/0.1162, allocations: 119.4 kB / 453.6 MB, free: 6.035 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.232e-05/0.1162, allocations: 16 kB / 453.6 MB, free: 6.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.54e-05/0.1163, allocations: 28 kB / 453.6 MB, free: 5.992 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.315e-05/0.1164, allocations: 47.77 kB / 453.7 MB, free: 5.945 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001279/0.1165, allocations: 119.3 kB / 453.8 MB, free: 5.828 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000325/0.1168, allocations: 231.3 kB / 454 MB, free: 5.602 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.1168, allocations: 0 / 454 MB, free: 5.602 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1168, allocations: 4 kB / 454 MB, free: 5.598 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.096e-05/0.1169, allocations: 0 / 454 MB, free: 5.598 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.001015/0.1179, allocations: 0.5607 MB / 454.6 MB, free: 4.988 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.1179, allocations: 11.89 kB / 454.6 MB, free: 4.977 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00014/0.1181, allocations: 32.56 kB / 454.6 MB, free: 4.945 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003786/0.1185, allocations: 266.7 kB / 454.9 MB, free: 4.648 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.908e-05/0.1185, allocations: 38.27 kB / 454.9 MB, free: 4.605 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.994e-05/0.1186, allocations: 28.31 kB / 455 MB, free: 4.578 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003733/0.119, allocations: 183 kB / 455.1 MB, free: 4.387 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.724e-05/0.119, allocations: 3.906 kB / 455.2 MB, free: 4.383 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.12e-05/0.119, allocations: 4 kB / 455.2 MB, free: 4.379 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.757e-06/0.119, allocations: 7.938 kB / 455.2 MB, free: 4.371 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003071/0.1194, allocations: 115.9 kB / 455.3 MB, free: 4.258 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001134/0.1205, allocations: 0.6735 MB / 456 MB, free: 3.523 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004045/0.1209, allocations: 146.5 kB / 456.1 MB, free: 3.371 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001846/0.1211, allocations: 88.81 kB / 456.2 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.519e-05/0.1211, allocations: 0 / 456.2 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.359e-05/0.1212, allocations: 30.56 kB / 456.2 MB, free: 3.242 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.182e-06/0.1212, allocations: 8 kB / 456.2 MB, free: 3.234 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.001252/0.1224, allocations: 0.569 MB / 456.8 MB, free: 2.613 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.9e-05/0.1225, allocations: 55.41 kB / 456.8 MB, free: 2.547 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002531/0.1228, allocations: 237 kB / 457.1 MB, free: 2.309 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.349e-05/0.1228, allocations: 33.7 kB / 457.1 MB, free: 2.27 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.806e-05/0.1229, allocations: 148.3 kB / 457.3 MB, free: 2.121 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.315e-05/0.123, allocations: 70.98 kB / 457.3 MB, free: 2.051 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.837e-05/0.123, allocations: 41.7 kB / 457.4 MB, free: 2.004 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.1232, allocations: 338.8 kB / 457.7 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002011/0.1234, allocations: 55.97 kB / 457.7 MB, free: 1.609 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001661/0.1236, allocations: 85.56 kB / 457.8 MB, free: 1.52 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002928/0.1239, allocations: 145.5 kB / 458 MB, free: 1.371 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.1239, allocations: 0 / 458 MB, free: 1.371 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004087/0.1243, allocations: 209.2 kB / 458.2 MB, free: 1.16 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.1243, allocations: 8.031 kB / 458.2 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.1243, allocations: 0 / 458.2 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.1243, allocations: 0 / 458.2 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004294/0.1248, allocations: 75.95 kB / 458.3 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.1248, allocations: 0 / 458.3 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002011/0.125, allocations: 19.86 kB / 458.3 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.445e-05/0.125, allocations: 4 kB / 458.3 MB, free: 1.055 MB / 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.000134/0.1252, allocations: 141.8 kB / 458.4 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.151e-05/0.1252, allocations: 19.72 kB / 458.4 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.029e-05/0.1253, allocations: 30.17 kB / 458.5 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.1253, allocations: 0 / 458.5 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.1253, allocations: 0 / 458.5 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.1253, allocations: 0 / 458.5 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008729/0.1262, allocations: 0.5424 MB / 459 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.1262, allocations: 11.92 kB / 459 MB, free: 260 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003814/0.1266, allocations: 63.97 kB / 459.1 MB, free: 196 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.1266, allocations: 0 / 459.1 MB, free: 196 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.449e-05/0.1266, allocations: 3.938 kB / 459.1 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.1267, allocations: 4 kB / 459.1 MB, free: 188 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/0.1267, allocations: 3.938 kB / 459.1 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005923/0.1273, allocations: 351.6 kB / 459.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.84e-05/0.1274, allocations: 108.9 kB / 459.5 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.5e-05/0.1274, allocations: 0 / 459.5 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001615/0.1276, allocations: 11.98 kB / 459.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.184e-05/0.1277, allocations: 15.92 kB / 459.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.089e-05/0.1277, allocations: 8 kB / 459.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001683/0.1279, allocations: 168.5 kB / 459.7 MB, free: 15.49 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1279, allocations: 0 / 459.7 MB, free: 15.49 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000322/0.1282, allocations: 52 kB / 459.8 MB, free: 15.44 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 0.0001113/0.1283, allocations: 103.2 kB / 459.9 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003967/0.1287, allocations: 159.8 kB / 460.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.1287, allocations: 0 / 460.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001538/0.1289, allocations: 71.91 kB / 460.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004031/0.1293, allocations: 43.59 kB / 460.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001312/0.1306, allocations: 0.677 MB / 460.8 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004179/0.1311, allocations: 0.7439 MB / 461.6 MB, free: 13.58 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001495/0.1312, allocations: 35.36 kB / 461.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1312, allocations: 0 / 461.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of Templates: time 0.00571/0.137, allocations: 2.582 MB / 464.2 MB, free: 10.96 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 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe 2>&1)