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.001485/0.001485, 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.001666/0.001666, allocations: 192 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.257/1.257, 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.2552/0.2552, 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.001461/0.001461, allocations: 72.11 kB / 391.5 MB, free: 48.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0763/0.07777, allocations: 59.17 MB / 450.7 MB, free: 9.031 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.004262/0.08206, allocations: 3.109 MB / 453.8 MB, free: 5.898 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001658/0.08374, allocations: 0.846 MB / 454.7 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002422/0.08401, allocations: 11.88 kB / 454.7 MB, free: 5.031 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001918/0.08422, allocations: 59.33 kB / 454.7 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003772/0.08461, allocations: 142.8 kB / 454.9 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002746/0.08489, allocations: 119.8 kB / 455 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004805/0.08539, allocations: 0.5219 MB / 455.5 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002366/0.08563, allocations: 137.5 kB / 455.6 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002251/0.08586, allocations: 211.1 kB / 455.8 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002504/0.08612, allocations: 210.9 kB / 456 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.364e-05/0.08619, allocations: 39.94 kB / 456.1 MB, free: 3.602 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.669e-05/0.08629, allocations: 48 kB / 456.1 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.539e-05/0.08637, allocations: 91.61 kB / 456.2 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000191/0.08657, allocations: 234.7 kB / 456.5 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004207/0.08699, allocations: 442.1 kB / 456.9 MB, free: 2.801 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.08701, allocations: 4 kB / 456.9 MB, free: 2.797 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.08701, allocations: 0 / 456.9 MB, free: 2.797 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.038e-05/0.08703, allocations: 0 / 456.9 MB, free: 2.797 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.001296/0.08833, allocations: 0.7904 MB / 457.7 MB, free: 1.957 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.08837, allocations: 11.89 kB / 457.7 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001253/0.0885, allocations: 56.28 kB / 457.7 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004832/0.089, allocations: 370 kB / 458.1 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.559e-05/0.08903, allocations: 29.03 kB / 458.1 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.07e-05/0.0891, allocations: 32.38 kB / 458.2 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004886/0.08959, allocations: 322.2 kB / 458.5 MB, free: 1.098 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.685e-05/0.08962, allocations: 8 kB / 458.5 MB, free: 1.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.525e-05/0.08965, allocations: 8 kB / 458.5 MB, free: 1.082 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.08966, allocations: 8 kB / 458.5 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004017/0.09007, allocations: 214.4 kB / 458.7 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001711/0.09179, allocations: 1.179 MB / 459.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004679/0.09227, allocations: 259.6 kB / 460.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002103/0.0925, allocations: 129.4 kB / 460.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.892e-05/0.09253, allocations: 4.281 kB / 460.3 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.994e-05/0.09256, allocations: 30.84 kB / 460.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.582e-06/0.09257, allocations: 4 kB / 460.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002018/0.09459, allocations: 1.076 MB / 461.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.145e-05/0.09464, allocations: 59.41 kB / 461.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003832/0.09503, allocations: 373.7 kB / 461.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.634e-05/0.09506, allocations: 37.7 kB / 461.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000137/0.0952, allocations: 224.5 kB / 462.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.465e-05/0.09531, allocations: 126.5 kB / 462.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.95e-05/0.09541, allocations: 74.05 kB / 462.3 MB, free: 13.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.09554, allocations: 354.7 kB / 462.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001848/0.09573, allocations: 92.83 kB / 462.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002014/0.09595, allocations: 152.6 kB / 462.8 MB, free: 12.49 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003903/0.09635, allocations: 252 kB / 463.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.09636, allocations: 0 / 463.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005136/0.09688, allocations: 340.9 kB / 463.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.0969, allocations: 8 kB / 463.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.09691, allocations: 0 / 463.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.09693, allocations: 4 kB / 463.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007171/0.09765, allocations: 152 kB / 463.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001031/0.0987, allocations: 1.445 MB / 465 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000243/0.09895, allocations: 12 kB / 465 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.326e-05/0.099, allocations: 15.98 kB / 465.1 MB, free: 10.12 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.0001418/0.09915, allocations: 149.8 kB / 465.2 MB, free: 9.961 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.868e-05/0.09922, allocations: 47.45 kB / 465.3 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005094/0.09974, allocations: 322 kB / 465.6 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.09975, allocations: 4 kB / 465.6 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.09976, allocations: 0 / 465.6 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.09977, allocations: 4 kB / 465.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001007/0.1008, allocations: 0.7796 MB / 466.4 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.1008, allocations: 3.938 kB / 466.4 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004335/0.1012, allocations: 83.89 kB / 466.4 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.1013, allocations: 7.938 kB / 466.4 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.184e-05/0.1013, allocations: 8 kB / 466.5 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.1013, allocations: 4 kB / 466.5 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1013, allocations: 0 / 466.5 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006785/0.102, allocations: 0.5128 MB / 467 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001485/0.1021, allocations: 136.5 kB / 467.1 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.823e-05/0.1022, allocations: 8 kB / 467.1 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002404/0.1024, allocations: 16 kB / 467.1 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.072e-05/0.1025, allocations: 19.97 kB / 467.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.042e-05/0.1025, allocations: 11.98 kB / 467.2 MB, free: 7.902 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002705/0.1028, allocations: 267.2 kB / 467.4 MB, free: 7.641 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1028, allocations: 0 / 467.4 MB, free: 7.641 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003502/0.1032, allocations: 88 kB / 467.5 MB, free: 7.555 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 8.988e-05/0.1033, allocations: 103.2 kB / 467.6 MB, free: 7.445 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006294/0.1039, allocations: 292.1 kB / 467.9 MB, free: 7.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.1039, allocations: 4 kB / 467.9 MB, free: 7.156 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002091/0.1041, allocations: 131.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.0004934/0.1046, allocations: 88.14 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.001748/0.1064, 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.0003663/0.1068, allocations: 0.8313 MB / 470.1 MB, free: 4.953 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001545/0.1069, allocations: 47.25 kB / 470.1 MB, free: 4.902 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001108/0.107, allocations: 35.62 kB / 470.1 MB, free: 4.867 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1071, allocations: 0 / 470.1 MB, free: 4.867 MB / 350.1 MB Notification: Performance of Templates: time 0.007815/0.1149, allocations: 4.255 MB / 474.4 MB, free: 0.6133 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 gbode -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1)