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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.00108/0.00108, allocations: 184.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.222/1.222, allocations: 205.1 MB / 223.1 MB, free: 8.461 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009497/0.0009498, allocations: 95.92 kB / 270.5 MB, free: 8.43 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3422/0.3422, allocations: 48.83 MB / 366.7 MB, free: 46.54 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009876/0.0009877, allocations: 55.92 kB / 436.6 MB, free: 11.4 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09273/0.09373, allocations: 59.15 MB / 495.8 MB, free: 112 kB / 378.7 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.004105/0.09788, allocations: 3.397 MB / 499.1 MB, free: 12.69 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001362/0.09927, allocations: 0.8808 MB / 0.4883 GB, free: 11.8 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001603/0.09944, allocations: 8 kB / 0.4883 GB, free: 11.79 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001508/0.0996, allocations: 39.58 kB / 0.4884 GB, free: 11.75 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003232/0.09994, allocations: 119.1 kB / 0.4885 GB, free: 11.63 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002046/0.1002, allocations: 103.9 kB / 0.4886 GB, free: 11.53 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004334/0.1006, allocations: 0.5062 MB / 0.4891 GB, free: 11.02 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002094/0.1008, allocations: 133.3 kB / 0.4892 GB, free: 10.89 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002032/0.101, allocations: 195.1 kB / 0.4894 GB, free: 10.7 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002252/0.1013, allocations: 214.8 kB / 0.4896 GB, free: 10.49 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 5.058e-05/0.1013, allocations: 24 kB / 0.4896 GB, free: 10.46 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.438e-05/0.1014, allocations: 32 kB / 0.4896 GB, free: 10.43 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 6.981e-05/0.1015, allocations: 83.59 kB / 0.4897 GB, free: 10.35 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001647/0.1017, allocations: 214.6 kB / 0.4899 GB, free: 10.14 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003408/0.102, allocations: 418.3 kB / 0.4903 GB, free: 9.73 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.102, allocations: 0 / 0.4903 GB, free: 9.73 MB / 394.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.102, allocations: 4 kB / 0.4903 GB, free: 9.727 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.102, allocations: 0 / 0.4903 GB, free: 9.727 MB / 394.7 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.001261/0.1033, allocations: 0.7904 MB / 0.4911 GB, free: 8.887 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.166e-05/0.1033, allocations: 8.031 kB / 0.4911 GB, free: 8.879 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/0.1035, allocations: 56.28 kB / 0.4912 GB, free: 8.824 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004133/0.1039, allocations: 373.9 kB / 0.4915 GB, free: 8.418 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.005e-05/0.1039, allocations: 33.03 kB / 0.4915 GB, free: 8.387 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.672e-05/0.104, allocations: 32.38 kB / 0.4916 GB, free: 8.355 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004683/0.1045, allocations: 318.2 kB / 0.4919 GB, free: 8.027 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.1045, allocations: 0 / 0.4919 GB, free: 8.027 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.608e-05/0.1045, allocations: 12 kB / 0.4919 GB, free: 8.016 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.1045, allocations: 8 kB / 0.4919 GB, free: 8.008 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003839/0.1049, allocations: 222.4 kB / 0.4921 GB, free: 7.793 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001629/0.1066, allocations: 1.167 MB / 0.4932 GB, free: 6.551 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004545/0.107, allocations: 268.2 kB / 0.4935 GB, free: 6.281 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002063/0.1072, allocations: 125.7 kB / 0.4936 GB, free: 6.156 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.049e-05/0.1073, allocations: 4.281 kB / 0.4936 GB, free: 6.152 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.073e-05/0.1073, allocations: 38.83 kB / 0.4937 GB, free: 6.105 MB / 394.7 MB Notification: Performance of pre-optimization done (n=33): time 1.463e-06/0.1073, allocations: 4 kB / 0.4937 GB, free: 6.102 MB / 394.7 MB Notification: Performance of matching and sorting (n=35): time 0.00203/0.1094, allocations: 1.084 MB / 0.4947 GB, free: 4.93 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.531e-05/0.1094, allocations: 55.41 kB / 0.4948 GB, free: 4.863 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003631/0.1098, allocations: 377.7 kB / 0.4951 GB, free: 4.484 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.377e-05/0.1098, allocations: 33.7 kB / 0.4952 GB, free: 4.445 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.11, allocations: 216.6 kB / 0.4954 GB, free: 4.227 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.649e-05/0.11, allocations: 134.1 kB / 0.4955 GB, free: 4.094 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.691e-05/0.1101, allocations: 78.03 kB / 0.4956 GB, free: 4.012 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.1103, allocations: 354.7 kB / 0.4959 GB, free: 3.656 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001778/0.1105, allocations: 92.83 kB / 0.496 GB, free: 3.566 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002/0.1107, allocations: 140.6 kB / 0.4961 GB, free: 3.414 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003855/0.1111, allocations: 260 kB / 0.4964 GB, free: 3.145 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1111, allocations: 0 / 0.4964 GB, free: 3.145 MB / 394.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005187/0.1116, allocations: 341 kB / 0.4967 GB, free: 2.805 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.1116, allocations: 12.12 kB / 0.4967 GB, free: 2.793 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.1116, allocations: 0 / 0.4967 GB, free: 2.793 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.1117, allocations: 4 kB / 0.4967 GB, free: 2.789 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007384/0.1124, allocations: 147.8 kB / 0.4969 GB, free: 2.645 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000952/0.1134, allocations: 1.35 MB / 0.4982 GB, free: 1.156 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002485/0.1136, allocations: 19.92 kB / 0.4982 GB, free: 1.137 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.465e-05/0.1137, allocations: 12 kB / 0.4982 GB, free: 1.125 MB / 394.7 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.0001538/0.1138, allocations: 161.9 kB / 0.4984 GB, free: 0.957 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.377e-05/0.1139, allocations: 39.53 kB / 0.4984 GB, free: 0.918 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005154/0.1144, allocations: 325.7 kB / 0.4987 GB, free: 0.5938 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.1144, allocations: 4 kB / 0.4987 GB, free: 0.5898 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-06/0.1144, allocations: 0 / 0.4987 GB, free: 0.5898 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.1144, allocations: 0 / 0.4987 GB, free: 0.5898 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1587/0.2731, allocations: 0.7831 MB / 0.4995 GB, free: 59.21 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.2731, allocations: 4.281 kB / 0.4995 GB, free: 59.21 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004228/0.2736, allocations: 81.38 kB / 0.4996 GB, free: 59.21 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.2736, allocations: 2.812 kB / 0.4996 GB, free: 59.21 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.513e-05/0.2736, allocations: 11.98 kB / 0.4996 GB, free: 59.21 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.2736, allocations: 1.625 kB / 0.4996 GB, free: 59.21 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.562e-06/0.2736, allocations: 1.406 kB / 0.4996 GB, free: 59.21 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005182/0.2788, allocations: 3.405 MB / 0.5029 GB, free: 58.18 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/0.2789, allocations: 140.1 kB / 0.503 GB, free: 58.05 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.244e-05/0.279, allocations: 16.19 kB / 0.5031 GB, free: 58.04 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002219/0.2792, allocations: 7.281 kB / 0.5031 GB, free: 58.04 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.118e-05/0.2793, allocations: 23.39 kB / 0.5031 GB, free: 58.04 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.712e-05/0.2793, allocations: 7.031 kB / 0.5031 GB, free: 58.04 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002354/0.2795, allocations: 270.1 kB / 0.5034 GB, free: 57.89 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2795, allocations: 0 / 0.5034 GB, free: 57.89 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005137/0.2801, allocations: 131 kB / 0.5035 GB, free: 57.88 MB / 394.7 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 8.403e-05/0.2802, allocations: 107.7 kB / 0.5036 GB, free: 57.79 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006554/0.2808, allocations: 285.2 kB / 0.5039 GB, free: 57.72 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2808, allocations: 0 / 0.5039 GB, free: 57.72 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001956/0.281, allocations: 130.4 kB / 0.504 GB, free: 57.69 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005072/0.2816, allocations: 83.22 kB / 0.5041 GB, free: 57.66 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001838/0.2834, allocations: 1.536 MB / 0.5056 GB, free: 56.68 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002293/0.2836, allocations: 0.8382 MB / 0.5064 GB, free: 55.98 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002455/0.2839, allocations: 56.27 kB / 0.5064 GB, free: 55.97 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001487/0.2841, allocations: 38.45 kB / 0.5065 GB, free: 55.96 MB / 394.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2841, allocations: 0.5625 kB / 0.5065 GB, free: 55.96 MB / 394.7 MB Notification: Performance of Templates: time 0.008538/0.2926, allocations: 5.304 MB / 0.5116 GB, free: 55.67 MB / 394.7 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 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1)