Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.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.TestElectrical7,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical7,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.001156/0.001157, allocations: 191 kB / 18.63 MB, free: 4.375 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.284/1.284, allocations: 205.1 MB / 224.5 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.268/0.268, 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.001404/0.001404, allocations: 69 kB / 391.5 MB, free: 48.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08398/0.0854, allocations: 59.17 MB / 450.7 MB, free: 9.043 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.004068/0.0895, allocations: 3.117 MB / 453.8 MB, free: 5.902 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001373/0.09089, allocations: 0.8421 MB / 454.7 MB, free: 5.051 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001756/0.09107, allocations: 4 kB / 454.7 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000171/0.09126, allocations: 67.19 kB / 454.7 MB, free: 4.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003328/0.0916, allocations: 142.8 kB / 454.9 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000259/0.09187, allocations: 119.8 kB / 455 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005157/0.0924, allocations: 0.5218 MB / 455.5 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000267/0.09267, allocations: 137.5 kB / 455.6 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002352/0.09292, allocations: 211.1 kB / 455.8 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002743/0.0932, allocations: 218.9 kB / 456.1 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.747e-05/0.09326, allocations: 36 kB / 456.1 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.415e-05/0.09336, allocations: 43.94 kB / 456.1 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.095e-05/0.09346, allocations: 91.61 kB / 456.2 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002012/0.09367, allocations: 234.7 kB / 456.5 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004168/0.09409, allocations: 438.2 kB / 456.9 MB, free: 2.812 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.0941, allocations: 3.938 kB / 456.9 MB, free: 2.809 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.09411, allocations: 4 kB / 456.9 MB, free: 2.805 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.09412, allocations: 4 kB / 456.9 MB, free: 2.801 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001309/0.09544, allocations: 0.7866 MB / 457.7 MB, free: 1.965 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.09548, allocations: 11.89 kB / 457.7 MB, free: 1.953 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001313/0.09562, allocations: 56.28 kB / 457.7 MB, free: 1.898 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004784/0.09611, allocations: 378 kB / 458.1 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.363e-05/0.09615, allocations: 25.03 kB / 458.1 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.267e-05/0.09622, allocations: 36.38 kB / 458.2 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004818/0.09671, allocations: 318.2 kB / 458.5 MB, free: 1.102 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/0.09673, allocations: 4 kB / 458.5 MB, free: 1.098 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.22e-05/0.09677, allocations: 12 kB / 458.5 MB, free: 1.086 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.09679, allocations: 8 kB / 458.5 MB, free: 1.078 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004036/0.09719, allocations: 218.5 kB / 458.7 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001707/0.09891, allocations: 1.175 MB / 459.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004813/0.09941, allocations: 263.6 kB / 460.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001997/0.09962, allocations: 121.4 kB / 460.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.16e-05/0.09966, allocations: 4.281 kB / 460.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.145e-05/0.09969, allocations: 34.84 kB / 460.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.442e-06/0.09969, allocations: 8 kB / 460.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.001988/0.1017, allocations: 1.072 MB / 461.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.045e-05/0.1017, allocations: 55.41 kB / 461.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003701/0.1021, allocations: 377.7 kB / 461.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.325e-05/0.1022, allocations: 33.7 kB / 461.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001401/0.1023, allocations: 224.5 kB / 462.1 MB, free: 13.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.793e-05/0.1024, allocations: 126.5 kB / 462.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.87e-05/0.1025, allocations: 85.97 kB / 462.3 MB, free: 13.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.1026, allocations: 350.7 kB / 462.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001749/0.1028, allocations: 92.83 kB / 462.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002211/0.1031, allocations: 140.6 kB / 462.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003819/0.1035, allocations: 256 kB / 463.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1035, allocations: 0 / 463.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005148/0.104, allocations: 344.9 kB / 463.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.104, allocations: 8.125 kB / 463.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.104, allocations: 4 kB / 463.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.104, allocations: 4 kB / 463.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007049/0.1048, allocations: 143.8 kB / 463.6 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001056/0.1058, allocations: 1.441 MB / 465 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002383/0.1061, allocations: 15.98 kB / 465 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.372e-05/0.1061, allocations: 8.156 kB / 465.1 MB, free: 10.13 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (48): * Single equations (assignments): 47 * 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.0001548/0.1063, allocations: 161.7 kB / 465.2 MB, free: 9.965 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.678e-05/0.1063, allocations: 43.47 kB / 465.3 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005005/0.1068, allocations: 318 kB / 465.6 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.1069, allocations: 4 kB / 465.6 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-06/0.1069, allocations: 0 / 465.6 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.72e-06/0.1069, allocations: 4 kB / 465.6 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/0.1079, allocations: 0.7951 MB / 466.4 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.1079, allocations: 0 / 466.4 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004132/0.1083, allocations: 79.84 kB / 466.4 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.1084, allocations: 4 kB / 466.4 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.126e-05/0.1084, allocations: 11.98 kB / 466.5 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.38e-05/0.1084, allocations: 8 kB / 466.5 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1084, allocations: 0 / 466.5 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006748/0.1091, allocations: 0.5089 MB / 467 MB, free: 8.113 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001451/0.1093, allocations: 140.5 kB / 467.1 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.601e-05/0.1093, allocations: 4 kB / 467.1 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002297/0.1095, allocations: 11.98 kB / 467.1 MB, free: 7.941 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.524e-05/0.1096, allocations: 23.97 kB / 467.2 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.661e-05/0.1096, allocations: 8 kB / 467.2 MB, free: 7.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002585/0.1099, allocations: 267.2 kB / 467.4 MB, free: 7.648 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1099, allocations: 0 / 467.4 MB, free: 7.648 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003428/0.1102, allocations: 92 kB / 467.5 MB, free: 7.559 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.omega_e_filt,torqueGen_a.y,torqueGen_b.y,secondaryController.powerOffset) * 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 (36): * Single equations (assignments): 36 * 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.0001149/0.1104, allocations: 103.2 kB / 467.6 MB, free: 7.449 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006377/0.111, allocations: 292 kB / 467.9 MB, free: 7.164 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.111, allocations: 256 / 467.9 MB, free: 7.164 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002096/0.1112, allocations: 139.7 kB / 468 MB, free: 7.027 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004967/0.1117, allocations: 88.03 kB / 468.1 MB, free: 6.945 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001781/0.1135, allocations: 1.11 MB / 469.2 MB, free: 5.809 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003555/0.1139, allocations: 0.8313 MB / 470.1 MB, free: 4.953 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001569/0.1141, allocations: 43.25 kB / 470.1 MB, free: 4.906 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001068/0.1142, allocations: 39.42 kB / 470.1 MB, free: 4.867 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1142, allocations: 0 / 470.1 MB, free: 4.867 MB / 350.1 MB Notification: Performance of Templates: time 0.008819/0.123, allocations: 4.245 MB / 474.4 MB, free: 0.6211 MB / 350.1 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.makefile (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7 -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1)